V - the keyType of elements maintained by this Collectionpublic static class Int2ObjectMaps.UnmodifyableOrderedMap<V> extends Int2ObjectMaps.UnmodifyableMap<V> implements Int2ObjectOrderedMap<V>
AbstractInt2ObjectMap.BasicEntry<V>java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Int2ObjectOrderedMap.FastOrderedSet<V>Int2ObjectMap.BuilderCache<V>, Int2ObjectMap.Entry<V>, Int2ObjectMap.FastEntrySet<V>, Int2ObjectMap.MapBuilder| Modifier and Type | Method and Description |
|---|---|
Int2ObjectOrderedMap<V> |
copy()
A Function that does a shallow clone of the Map itself.
|
int |
firstIntKey()
A method to get the first Key of a Map.
|
V |
firstValue()
A method to get the first Value of a Map.
|
V |
getAndMoveToFirst(int key)
A Specific get method that allows to move teh given key/value int the first index.
|
V |
getAndMoveToLast(int key)
A Specific get method that allows to move teh given key/value int the last index.
|
ObjectOrderedSet<Int2ObjectMap.Entry<V>> |
int2ObjectEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
IntOrderedSet |
keySet() |
int |
lastIntKey()
A method to get the last Key of a Map.
|
V |
lastValue()
A method to get the last Value of a Map.
|
boolean |
moveToFirst(int key)
A specific move method to move a given key/value to the first index.
|
boolean |
moveToLast(int key)
A specific move method to move a given key/value to the last index.
|
int |
pollFirstIntKey()
A method to get and remove the first Key of a Map.
|
int |
pollLastIntKey()
A method to get and remove the last Key of a Map.
|
V |
putAndMoveToFirst(int key,
V value)
A customized put method that allows you to insert into the first index.
|
V |
putAndMoveToLast(int 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(int key, V value)
Int2ObjectOrderedMapputAndMoveToFirst in interface Int2ObjectOrderedMap<V>key - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public V putAndMoveToLast(int key, V value)
Int2ObjectOrderedMapputAndMoveToLast in interface Int2ObjectOrderedMap<V>key - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public boolean moveToFirst(int key)
Int2ObjectOrderedMapmoveToFirst in interface Int2ObjectOrderedMap<V>key - that should be moved to the first indexpublic boolean moveToLast(int key)
Int2ObjectOrderedMapmoveToLast in interface Int2ObjectOrderedMap<V>key - that should be moved to the first lastpublic V getAndMoveToFirst(int key)
Int2ObjectOrderedMapgetAndMoveToFirst in interface Int2ObjectOrderedMap<V>key - that is searched forpublic V getAndMoveToLast(int key)
Int2ObjectOrderedMapgetAndMoveToLast in interface Int2ObjectOrderedMap<V>key - that is searched forpublic int firstIntKey()
Int2ObjectOrderedMapfirstIntKey in interface Int2ObjectOrderedMap<V>public int pollFirstIntKey()
Int2ObjectOrderedMappollFirstIntKey in interface Int2ObjectOrderedMap<V>public int lastIntKey()
Int2ObjectOrderedMaplastIntKey in interface Int2ObjectOrderedMap<V>public int pollLastIntKey()
Int2ObjectOrderedMappollLastIntKey in interface Int2ObjectOrderedMap<V>public V firstValue()
Int2ObjectOrderedMapfirstValue in interface Int2ObjectOrderedMap<V>public V lastValue()
Int2ObjectOrderedMaplastValue in interface Int2ObjectOrderedMap<V>public Int2ObjectOrderedMap<V> copy()
Int2ObjectMapcopy in interface Int2ObjectMap<V>copy in interface Int2ObjectOrderedMap<V>copy in class Int2ObjectMaps.UnmodifyableMap<V>public IntOrderedSet keySet()
keySet in interface java.util.Map<java.lang.Integer,V>keySet in interface Int2ObjectMap<V>keySet in interface Int2ObjectOrderedMap<V>keySet in class Int2ObjectMaps.UnmodifyableMap<V>public ObjectOrderedSet<Int2ObjectMap.Entry<V>> int2ObjectEntrySet()
Int2ObjectMapint2ObjectEntrySet in interface Int2ObjectMap<V>int2ObjectEntrySet in interface Int2ObjectOrderedMap<V>int2ObjectEntrySet in class Int2ObjectMaps.UnmodifyableMap<V>