Klasse Byte2LongMaps.SynchronizedOrderedMap

Alle implementierten Schnittstellen:
Map<Byte,Long>, Byte2LongFunction, Byte2LongMap, Byte2LongOrderedMap
Umschließende Klasse:
Byte2LongMaps

public static class Byte2LongMaps.SynchronizedOrderedMap extends Byte2LongMaps.SynchronizedMap implements Byte2LongOrderedMap
The Synchronized Ordered Map implementation used by the synchronizedMap helper function
  • Methodendetails

    • putAndMoveToFirst

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

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

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

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

      public byte firstByteKey()
      Beschreibung aus Schnittstelle kopiert: Byte2LongOrderedMap
      A method to get the first Key of a Map.
      Angegeben von:
      firstByteKey in Schnittstelle Byte2LongOrderedMap
      Gibt zurück:
      the first key in the map
    • pollFirstByteKey

      public byte pollFirstByteKey()
      Beschreibung aus Schnittstelle kopiert: Byte2LongOrderedMap
      A method to get and remove the first Key of a Map.
      Angegeben von:
      pollFirstByteKey in Schnittstelle Byte2LongOrderedMap
      Gibt zurück:
      the first key in the map
    • lastByteKey

      public byte lastByteKey()
      Beschreibung aus Schnittstelle kopiert: Byte2LongOrderedMap
      A method to get the last Key of a Map.
      Angegeben von:
      lastByteKey in Schnittstelle Byte2LongOrderedMap
      Gibt zurück:
      the last key in the map
    • pollLastByteKey

      public byte pollLastByteKey()
      Beschreibung aus Schnittstelle kopiert: Byte2LongOrderedMap
      A method to get and remove the last Key of a Map.
      Angegeben von:
      pollLastByteKey in Schnittstelle Byte2LongOrderedMap
      Gibt zurück:
      the last key in the map
    • firstLongValue

      public long firstLongValue()
      Beschreibung aus Schnittstelle kopiert: Byte2LongOrderedMap
      A method to get the first Value of a Map.
      Angegeben von:
      firstLongValue in Schnittstelle Byte2LongOrderedMap
      Gibt zurück:
      the first key in the map
    • lastLongValue

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

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

      public ByteOrderedSet keySet()
      Angegeben von:
      keySet in Schnittstelle Byte2LongMap
      Angegeben von:
      keySet in Schnittstelle Byte2LongOrderedMap
      Angegeben von:
      keySet in Schnittstelle Map<Byte,Long>
      Setzt außer Kraft:
      keySet in Klasse Byte2LongMaps.SynchronizedMap
    • byte2LongEntrySet

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