Klasse Long2CharMaps.UnmodifyableOrderedMap

Alle implementierten Schnittstellen:
Map<Long,Character>, Long2CharFunction, Long2CharMap, Long2CharOrderedMap
Umschließende Klasse:
Long2CharMaps

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

    • putAndMoveToFirst

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

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

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

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

      public long firstLongKey()
      Beschreibung aus Schnittstelle kopiert: Long2CharOrderedMap
      A method to get the first Key of a Map.
      Angegeben von:
      firstLongKey in Schnittstelle Long2CharOrderedMap
      Gibt zurück:
      the first key in the map
    • pollFirstLongKey

      public long pollFirstLongKey()
      Beschreibung aus Schnittstelle kopiert: Long2CharOrderedMap
      A method to get and remove the first Key of a Map.
      Angegeben von:
      pollFirstLongKey in Schnittstelle Long2CharOrderedMap
      Gibt zurück:
      the first key in the map
    • lastLongKey

      public long lastLongKey()
      Beschreibung aus Schnittstelle kopiert: Long2CharOrderedMap
      A method to get the last Key of a Map.
      Angegeben von:
      lastLongKey in Schnittstelle Long2CharOrderedMap
      Gibt zurück:
      the last key in the map
    • pollLastLongKey

      public long pollLastLongKey()
      Beschreibung aus Schnittstelle kopiert: Long2CharOrderedMap
      A method to get and remove the last Key of a Map.
      Angegeben von:
      pollLastLongKey in Schnittstelle Long2CharOrderedMap
      Gibt zurück:
      the last key in the map
    • firstCharValue

      public char firstCharValue()
      Beschreibung aus Schnittstelle kopiert: Long2CharOrderedMap
      A method to get the first Value of a Map.
      Angegeben von:
      firstCharValue in Schnittstelle Long2CharOrderedMap
      Gibt zurück:
      the first key in the map
    • lastCharValue

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

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

      public LongOrderedSet keySet()
      Angegeben von:
      keySet in Schnittstelle Long2CharMap
      Angegeben von:
      keySet in Schnittstelle Long2CharOrderedMap
      Angegeben von:
      keySet in Schnittstelle Map<Long,Character>
      Setzt außer Kraft:
      keySet in Klasse Long2CharMaps.UnmodifyableMap
    • long2CharEntrySet

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