V - the keyType of elements maintained by this Collectionpublic static class Short2ObjectMaps.UnmodifyableOrderedMap<V> extends Short2ObjectMaps.UnmodifyableMap<V> implements Short2ObjectOrderedMap<V>
AbstractShort2ObjectMap.BasicEntry<V>java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Short2ObjectOrderedMap.FastOrderedSet<V>Short2ObjectMap.BuilderCache<V>, Short2ObjectMap.Entry<V>, Short2ObjectMap.FastEntrySet<V>, Short2ObjectMap.MapBuilder| Modifier and Type | Method and Description |
|---|---|
Short2ObjectOrderedMap<V> |
copy()
A Function that does a shallow clone of the Map itself.
|
short |
firstShortKey()
A method to get the first Key of a Map.
|
V |
firstValue()
A method to get the first Value of a Map.
|
V |
getAndMoveToFirst(short key)
A Specific get method that allows to move teh given key/value int the first index.
|
V |
getAndMoveToLast(short key)
A Specific get method that allows to move teh given key/value int the last index.
|
ShortOrderedSet |
keySet() |
short |
lastShortKey()
A method to get the last Key of a Map.
|
V |
lastValue()
A method to get the last Value of a Map.
|
boolean |
moveToFirst(short key)
A specific move method to move a given key/value to the first index.
|
boolean |
moveToLast(short key)
A specific move method to move a given key/value to the last index.
|
short |
pollFirstShortKey()
A method to get and remove the first Key of a Map.
|
short |
pollLastShortKey()
A method to get and remove the last Key of a Map.
|
V |
putAndMoveToFirst(short key,
V value)
A customized put method that allows you to insert into the first index.
|
V |
putAndMoveToLast(short key,
V value)
A customized put method that allows you to insert into the last index.
|
ObjectOrderedSet<Short2ObjectMap.Entry<V>> |
short2ObjectEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
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(short key, V value)
Short2ObjectOrderedMapputAndMoveToFirst in interface Short2ObjectOrderedMap<V>key - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public V putAndMoveToLast(short key, V value)
Short2ObjectOrderedMapputAndMoveToLast in interface Short2ObjectOrderedMap<V>key - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public boolean moveToFirst(short key)
Short2ObjectOrderedMapmoveToFirst in interface Short2ObjectOrderedMap<V>key - that should be moved to the first indexpublic boolean moveToLast(short key)
Short2ObjectOrderedMapmoveToLast in interface Short2ObjectOrderedMap<V>key - that should be moved to the first lastpublic V getAndMoveToFirst(short key)
Short2ObjectOrderedMapgetAndMoveToFirst in interface Short2ObjectOrderedMap<V>key - that is searched forpublic V getAndMoveToLast(short key)
Short2ObjectOrderedMapgetAndMoveToLast in interface Short2ObjectOrderedMap<V>key - that is searched forpublic short firstShortKey()
Short2ObjectOrderedMapfirstShortKey in interface Short2ObjectOrderedMap<V>public short pollFirstShortKey()
Short2ObjectOrderedMappollFirstShortKey in interface Short2ObjectOrderedMap<V>public short lastShortKey()
Short2ObjectOrderedMaplastShortKey in interface Short2ObjectOrderedMap<V>public short pollLastShortKey()
Short2ObjectOrderedMappollLastShortKey in interface Short2ObjectOrderedMap<V>public V firstValue()
Short2ObjectOrderedMapfirstValue in interface Short2ObjectOrderedMap<V>public V lastValue()
Short2ObjectOrderedMaplastValue in interface Short2ObjectOrderedMap<V>public Short2ObjectOrderedMap<V> copy()
Short2ObjectMapcopy in interface Short2ObjectMap<V>copy in interface Short2ObjectOrderedMap<V>copy in class Short2ObjectMaps.UnmodifyableMap<V>public ShortOrderedSet keySet()
keySet in interface java.util.Map<java.lang.Short,V>keySet in interface Short2ObjectMap<V>keySet in interface Short2ObjectOrderedMap<V>keySet in class Short2ObjectMaps.UnmodifyableMap<V>public ObjectOrderedSet<Short2ObjectMap.Entry<V>> short2ObjectEntrySet()
Short2ObjectMapshort2ObjectEntrySet in interface Short2ObjectMap<V>short2ObjectEntrySet in interface Short2ObjectOrderedMap<V>short2ObjectEntrySet in class Short2ObjectMaps.UnmodifyableMap<V>