Klasse Short2IntMaps.UnmodifyableOrderedMap

Alle implementierten Schnittstellen:
Map<Short,Integer>, Short2IntFunction, Short2IntMap, Short2IntOrderedMap
Umschließende Klasse:
Short2IntMaps

public static class Short2IntMaps.UnmodifyableOrderedMap extends Short2IntMaps.UnmodifyableMap implements Short2IntOrderedMap
The Unmodifyable Ordered Map implementation that is sued for the unmodifyableMap function
  • Methodendetails

    • putAndMoveToFirst

      public int putAndMoveToFirst(short key, int value)
      Beschreibung aus Schnittstelle kopiert: Short2IntOrderedMap
      A customized put method that allows you to insert into the first index.
      Angegeben von:
      putAndMoveToFirst in Schnittstelle Short2IntOrderedMap
      Parameter:
      key - the key that should be inserted
      value - the value that should be inserted
      Gibt zurück:
      the previous present or default return value
      Siehe auch:
    • putAndMoveToLast

      public int putAndMoveToLast(short key, int value)
      Beschreibung aus Schnittstelle kopiert: Short2IntOrderedMap
      A customized put method that allows you to insert into the last index. (This may be nessesary depending on the implementation)
      Angegeben von:
      putAndMoveToLast in Schnittstelle Short2IntOrderedMap
      Parameter:
      key - the key that should be inserted
      value - the value that should be inserted
      Gibt zurück:
      the previous present or default return value
      Siehe auch:
    • moveToFirst

      public boolean moveToFirst(short key)
      Beschreibung aus Schnittstelle kopiert: Short2IntOrderedMap
      A specific move method to move a given key/value to the first index.
      Angegeben von:
      moveToFirst in Schnittstelle Short2IntOrderedMap
      Parameter:
      key - that should be moved to the first index
      Gibt zurück:
      true if the value was moved.
    • moveToLast

      public boolean moveToLast(short key)
      Beschreibung aus Schnittstelle kopiert: Short2IntOrderedMap
      A specific move method to move a given key/value to the last index.
      Angegeben von:
      moveToLast in Schnittstelle Short2IntOrderedMap
      Parameter:
      key - that should be moved to the first last
      Gibt zurück:
      true if the value was moved.
    • getAndMoveToFirst

      public int getAndMoveToFirst(short key)
      Beschreibung aus Schnittstelle kopiert: Short2IntOrderedMap
      A Specific get method that allows to move teh given key/value int the first index.
      Angegeben von:
      getAndMoveToFirst in Schnittstelle Short2IntOrderedMap
      Parameter:
      key - that is searched for
      Gibt zurück:
      the given value for the requested key or default return value
    • getAndMoveToLast

      public int getAndMoveToLast(short key)
      Beschreibung aus Schnittstelle kopiert: Short2IntOrderedMap
      A Specific get method that allows to move teh given key/value int the last index.
      Angegeben von:
      getAndMoveToLast in Schnittstelle Short2IntOrderedMap
      Parameter:
      key - that is searched for
      Gibt zurück:
      the given value for the requested key or default return value
    • firstShortKey

      public short firstShortKey()
      Beschreibung aus Schnittstelle kopiert: Short2IntOrderedMap
      A method to get the first Key of a Map.
      Angegeben von:
      firstShortKey in Schnittstelle Short2IntOrderedMap
      Gibt zurück:
      the first key in the map
    • pollFirstShortKey

      public short pollFirstShortKey()
      Beschreibung aus Schnittstelle kopiert: Short2IntOrderedMap
      A method to get and remove the first Key of a Map.
      Angegeben von:
      pollFirstShortKey in Schnittstelle Short2IntOrderedMap
      Gibt zurück:
      the first key in the map
    • lastShortKey

      public short lastShortKey()
      Beschreibung aus Schnittstelle kopiert: Short2IntOrderedMap
      A method to get the last Key of a Map.
      Angegeben von:
      lastShortKey in Schnittstelle Short2IntOrderedMap
      Gibt zurück:
      the last key in the map
    • pollLastShortKey

      public short pollLastShortKey()
      Beschreibung aus Schnittstelle kopiert: Short2IntOrderedMap
      A method to get and remove the last Key of a Map.
      Angegeben von:
      pollLastShortKey in Schnittstelle Short2IntOrderedMap
      Gibt zurück:
      the last key in the map
    • firstIntValue

      public int firstIntValue()
      Beschreibung aus Schnittstelle kopiert: Short2IntOrderedMap
      A method to get the first Value of a Map.
      Angegeben von:
      firstIntValue in Schnittstelle Short2IntOrderedMap
      Gibt zurück:
      the first key in the map
    • lastIntValue

      public int lastIntValue()
      Beschreibung aus Schnittstelle kopiert: Short2IntOrderedMap
      A method to get the last Value of a Map.
      Angegeben von:
      lastIntValue in Schnittstelle Short2IntOrderedMap
      Gibt zurück:
      the last key in the map
    • copy

      public Short2IntOrderedMap copy()
      Beschreibung aus Schnittstelle kopiert: Short2IntMap
      A Function that does a shallow clone of the Map itself. This function is more optimized then a copy constructor since the Map does not have to be unsorted/resorted. It can be compared to Cloneable but with less exception risk
      Angegeben von:
      copy in Schnittstelle Short2IntMap
      Angegeben von:
      copy in Schnittstelle Short2IntOrderedMap
      Setzt außer Kraft:
      copy in Klasse Short2IntMaps.UnmodifyableMap
      Gibt zurück:
      a Shallow Copy of the Map
    • keySet

      public ShortOrderedSet keySet()
      Angegeben von:
      keySet in Schnittstelle Map<Short,Integer>
      Angegeben von:
      keySet in Schnittstelle Short2IntMap
      Angegeben von:
      keySet in Schnittstelle Short2IntOrderedMap
      Setzt außer Kraft:
      keySet in Klasse Short2IntMaps.UnmodifyableMap
    • short2IntEntrySet

      public ObjectOrderedSet<Short2IntMap.Entry> short2IntEntrySet()
      Beschreibung aus Schnittstelle kopiert: Short2IntMap
      Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
      Angegeben von:
      short2IntEntrySet in Schnittstelle Short2IntMap
      Angegeben von:
      short2IntEntrySet in Schnittstelle Short2IntOrderedMap
      Setzt außer Kraft:
      short2IntEntrySet in Klasse Short2IntMaps.UnmodifyableMap
      Gibt zurück:
      a EntrySet of the collection