Klasse Int2ShortMaps.UnmodifyableOrderedMap

Alle implementierten Schnittstellen:
Map<Integer,Short>, Int2ShortFunction, Int2ShortMap, Int2ShortOrderedMap
Umschließende Klasse:
Int2ShortMaps

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

    • putAndMoveToFirst

      public short putAndMoveToFirst(int key, short value)
      Beschreibung aus Schnittstelle kopiert: Int2ShortOrderedMap
      A customized put method that allows you to insert into the first index.
      Angegeben von:
      putAndMoveToFirst in Schnittstelle Int2ShortOrderedMap
      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 short putAndMoveToLast(int key, short value)
      Beschreibung aus Schnittstelle kopiert: Int2ShortOrderedMap
      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 Int2ShortOrderedMap
      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(int key)
      Beschreibung aus Schnittstelle kopiert: Int2ShortOrderedMap
      A specific move method to move a given key/value to the first index.
      Angegeben von:
      moveToFirst in Schnittstelle Int2ShortOrderedMap
      Parameter:
      key - that should be moved to the first index
      Gibt zurück:
      true if the value was moved.
    • moveToLast

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

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

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

      public int firstIntKey()
      Beschreibung aus Schnittstelle kopiert: Int2ShortOrderedMap
      A method to get the first Key of a Map.
      Angegeben von:
      firstIntKey in Schnittstelle Int2ShortOrderedMap
      Gibt zurück:
      the first key in the map
    • pollFirstIntKey

      public int pollFirstIntKey()
      Beschreibung aus Schnittstelle kopiert: Int2ShortOrderedMap
      A method to get and remove the first Key of a Map.
      Angegeben von:
      pollFirstIntKey in Schnittstelle Int2ShortOrderedMap
      Gibt zurück:
      the first key in the map
    • lastIntKey

      public int lastIntKey()
      Beschreibung aus Schnittstelle kopiert: Int2ShortOrderedMap
      A method to get the last Key of a Map.
      Angegeben von:
      lastIntKey in Schnittstelle Int2ShortOrderedMap
      Gibt zurück:
      the last key in the map
    • pollLastIntKey

      public int pollLastIntKey()
      Beschreibung aus Schnittstelle kopiert: Int2ShortOrderedMap
      A method to get and remove the last Key of a Map.
      Angegeben von:
      pollLastIntKey in Schnittstelle Int2ShortOrderedMap
      Gibt zurück:
      the last key in the map
    • firstShortValue

      public short firstShortValue()
      Beschreibung aus Schnittstelle kopiert: Int2ShortOrderedMap
      A method to get the first Value of a Map.
      Angegeben von:
      firstShortValue in Schnittstelle Int2ShortOrderedMap
      Gibt zurück:
      the first key in the map
    • lastShortValue

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

      public Int2ShortOrderedMap copy()
      Beschreibung aus Schnittstelle kopiert: Int2ShortMap
      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 Int2ShortMap
      Angegeben von:
      copy in Schnittstelle Int2ShortOrderedMap
      Setzt außer Kraft:
      copy in Klasse Int2ShortMaps.UnmodifyableMap
      Gibt zurück:
      a Shallow Copy of the Map
    • keySet

      public IntOrderedSet keySet()
      Angegeben von:
      keySet in Schnittstelle Int2ShortMap
      Angegeben von:
      keySet in Schnittstelle Int2ShortOrderedMap
      Angegeben von:
      keySet in Schnittstelle Map<Integer,Short>
      Setzt außer Kraft:
      keySet in Klasse Int2ShortMaps.UnmodifyableMap
    • int2ShortEntrySet

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