V - the keyType of elements maintained by this Collectionpublic static class Long2ObjectMaps.UnmodifyableOrderedMap<V> extends Long2ObjectMaps.UnmodifyableMap<V> implements Long2ObjectOrderedMap<V>
AbstractLong2ObjectMap.BasicEntry<V>java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Long2ObjectOrderedMap.FastOrderedSet<V>Long2ObjectMap.BuilderCache<V>, Long2ObjectMap.Entry<V>, Long2ObjectMap.FastEntrySet<V>, Long2ObjectMap.MapBuilder| Modifier and Type | Method and Description |
|---|---|
Long2ObjectOrderedMap<V> |
copy()
A Function that does a shallow clone of the Map itself.
|
long |
firstLongKey()
A method to get the first Key of a Map.
|
V |
firstValue()
A method to get the first Value of a Map.
|
V |
getAndMoveToFirst(long key)
A Specific get method that allows to move teh given key/value int the first index.
|
V |
getAndMoveToLast(long key)
A Specific get method that allows to move teh given key/value int the last index.
|
LongOrderedSet |
keySet() |
long |
lastLongKey()
A method to get the last Key of a Map.
|
V |
lastValue()
A method to get the last Value of a Map.
|
ObjectOrderedSet<Long2ObjectMap.Entry<V>> |
long2ObjectEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
boolean |
moveToFirst(long key)
A specific move method to move a given key/value to the first index.
|
boolean |
moveToLast(long key)
A specific move method to move a given key/value to the last index.
|
long |
pollFirstLongKey()
A method to get and remove the first Key of a Map.
|
long |
pollLastLongKey()
A method to get and remove the last Key of a Map.
|
V |
putAndMoveToFirst(long key,
V value)
A customized put method that allows you to insert into the first index.
|
V |
putAndMoveToLast(long key,
V value)
A customized put method that allows you to insert into the last index.
|
clear, compute, computeIfAbsent, computeIfPresent, get, getOrDefault, merge, mergeAll, put, putIfAbsent, remove, remove, removeOrDefault, replaceObjects, replaceObjects, supplyIfAbsent, valuescontainsKey, containsValue, entrySet, equals, forEach, get, getDefaultReturnValue, getOrDefault, hashCode, put, putAll, putAll, putAll, putAll, putAllIfAbsent, remove, replace, replace, setDefaultReturnValuesynchronize, synchronize, unmodifiableapply, builder, compute, compute, computeIfAbsent, computeIfAbsent, computeIfPresent, computeIfPresent, containsKey, containsKey, entrySet, forEach, forEach, get, get, getDefaultReturnValue, getOrDefault, getOrDefault, merge, merge, mergeAll, put, put, put, put, putAll, putAll, putAll, putAll, putAll, putAllIfAbsent, putIfAbsent, putIfAbsent, remove, remove, remove, remove, removeOrDefault, replace, replace, replace, replace, replaceAll, replaceObjects, replaceObjects, setDefaultReturnValue, supplyIfAbsent, valuespublic V putAndMoveToFirst(long key, V value)
Long2ObjectOrderedMapputAndMoveToFirst in interface Long2ObjectOrderedMap<V>key - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public V putAndMoveToLast(long key, V value)
Long2ObjectOrderedMapputAndMoveToLast in interface Long2ObjectOrderedMap<V>key - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public boolean moveToFirst(long key)
Long2ObjectOrderedMapmoveToFirst in interface Long2ObjectOrderedMap<V>key - that should be moved to the first indexpublic boolean moveToLast(long key)
Long2ObjectOrderedMapmoveToLast in interface Long2ObjectOrderedMap<V>key - that should be moved to the first lastpublic V getAndMoveToFirst(long key)
Long2ObjectOrderedMapgetAndMoveToFirst in interface Long2ObjectOrderedMap<V>key - that is searched forpublic V getAndMoveToLast(long key)
Long2ObjectOrderedMapgetAndMoveToLast in interface Long2ObjectOrderedMap<V>key - that is searched forpublic long firstLongKey()
Long2ObjectOrderedMapfirstLongKey in interface Long2ObjectOrderedMap<V>public long pollFirstLongKey()
Long2ObjectOrderedMappollFirstLongKey in interface Long2ObjectOrderedMap<V>public long lastLongKey()
Long2ObjectOrderedMaplastLongKey in interface Long2ObjectOrderedMap<V>public long pollLastLongKey()
Long2ObjectOrderedMappollLastLongKey in interface Long2ObjectOrderedMap<V>public V firstValue()
Long2ObjectOrderedMapfirstValue in interface Long2ObjectOrderedMap<V>public V lastValue()
Long2ObjectOrderedMaplastValue in interface Long2ObjectOrderedMap<V>public Long2ObjectOrderedMap<V> copy()
Long2ObjectMapcopy in interface Long2ObjectMap<V>copy in interface Long2ObjectOrderedMap<V>copy in class Long2ObjectMaps.UnmodifyableMap<V>public LongOrderedSet keySet()
keySet in interface java.util.Map<java.lang.Long,V>keySet in interface Long2ObjectMap<V>keySet in interface Long2ObjectOrderedMap<V>keySet in class Long2ObjectMaps.UnmodifyableMap<V>public ObjectOrderedSet<Long2ObjectMap.Entry<V>> long2ObjectEntrySet()
Long2ObjectMaplong2ObjectEntrySet in interface Long2ObjectMap<V>long2ObjectEntrySet in interface Long2ObjectOrderedMap<V>long2ObjectEntrySet in class Long2ObjectMaps.UnmodifyableMap<V>