Klasse Char2IntMaps.SynchronizedOrderedMap

Alle implementierten Schnittstellen:
Map<Character,Integer>, Char2IntFunction, Char2IntMap, Char2IntOrderedMap
Umschließende Klasse:
Char2IntMaps

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

    • putAndMoveToFirst

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

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

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

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

      public char firstCharKey()
      Beschreibung aus Schnittstelle kopiert: Char2IntOrderedMap
      A method to get the first Key of a Map.
      Angegeben von:
      firstCharKey in Schnittstelle Char2IntOrderedMap
      Gibt zurück:
      the first key in the map
    • pollFirstCharKey

      public char pollFirstCharKey()
      Beschreibung aus Schnittstelle kopiert: Char2IntOrderedMap
      A method to get and remove the first Key of a Map.
      Angegeben von:
      pollFirstCharKey in Schnittstelle Char2IntOrderedMap
      Gibt zurück:
      the first key in the map
    • lastCharKey

      public char lastCharKey()
      Beschreibung aus Schnittstelle kopiert: Char2IntOrderedMap
      A method to get the last Key of a Map.
      Angegeben von:
      lastCharKey in Schnittstelle Char2IntOrderedMap
      Gibt zurück:
      the last key in the map
    • pollLastCharKey

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

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

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

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

      public CharOrderedSet keySet()
      Angegeben von:
      keySet in Schnittstelle Char2IntMap
      Angegeben von:
      keySet in Schnittstelle Char2IntOrderedMap
      Angegeben von:
      keySet in Schnittstelle Map<Character,Integer>
      Setzt außer Kraft:
      keySet in Klasse Char2IntMaps.SynchronizedMap
    • char2IntEntrySet

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