V - the type of elements maintained by this Collectionpublic static class Int2ObjectMaps.UnmodifyableMap<V> extends AbstractInt2ObjectMap<V> implements Int2ObjectMap<V>
AbstractInt2ObjectMap.BasicEntry<V>java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Int2ObjectMap.Entry<V>, Int2ObjectMap.FastEntrySet<V>| Modifier and Type | Method and Description |
|---|---|
V |
getObject(int key)
A Type Specific get method to reduce boxing/unboxing
|
V |
getOrDefault(int key,
V defaultValue)
A Type Specific getOrDefault method to reduce boxing/unboxing
|
ObjectSet<Int2ObjectMap.Entry<V>> |
int2ObjectEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
IntSet |
keySet() |
V |
put(int key,
V value)
Type Specific method to reduce boxing/unboxing of values
|
V |
putIfAbsent(int key,
V value)
Type Specific method to reduce boxing/unboxing of values
|
V |
remInt(int key)
Type Specific remove function to reduce boxing/unboxing
|
V |
remIntOrDefault(int key,
V defaultValue)
Type-Specific Remove function with a default return value if wanted.
|
boolean |
remove(int key,
V value)
Type Specific remove function to reduce boxing/unboxing
|
ObjectCollection<V> |
values() |
compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getDefaultReturnValue, getOrDefault, hashCode, merge, mergeAll, putAll, putAll, putAll, putAllIfAbsent, replace, replace, replaceObjects, replaceObjects, setDefaultReturnValueclear, containsKey, isEmpty, put, remove, size, toStringcompute, compute, computeIfAbsent, computeIfAbsent, computeIfPresent, computeIfPresent, containsKey, containsKey, entrySet, forEach, forEach, get, getDefaultReturnValue, getOrDefault, merge, merge, mergeAll, put, putAll, putAll, putAll, putAllIfAbsent, putIfAbsent, remove, remove, replace, replace, replace, replace, replaceAll, replaceObjects, replaceObjects, setDefaultReturnValueclear, containsValue, equals, hashCode, isEmpty, putAll, sizeapplypublic V put(int key, V value)
Int2ObjectMapput in interface Int2ObjectMap<V>key - the key that should be inserted,value - the value that should be insertedMap.put(Object, Object)public V putIfAbsent(int key, V value)
Int2ObjectMapputIfAbsent in interface Int2ObjectMap<V>key - the key that should be inserted,value - the value that should be insertedMap.putIfAbsent(Object, Object)public V remInt(int key)
Int2ObjectMapremInt in interface Int2ObjectMap<V>key - the element that should be removedpublic V remIntOrDefault(int key, V defaultValue)
Int2ObjectMapremIntOrDefault in interface Int2ObjectMap<V>key - the element that should be removeddefaultValue - the value that should be returned if the entry doesn't existMap.remove(Object, Object)public boolean remove(int key,
V value)
Int2ObjectMapremove in interface Int2ObjectMap<V>key - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)public V getObject(int key)
Int2ObjectMapgetObject in interface Int2ObjectFunction<V>getObject in interface Int2ObjectMap<V>key - the key that is searched forpublic V getOrDefault(int key, V defaultValue)
Int2ObjectMapgetOrDefault in interface Int2ObjectMap<V>getOrDefault in class AbstractInt2ObjectMap<V>key - the key that is searched fordefaultValue - the value that should be returned if the key is not presentpublic IntSet keySet()
keySet in interface java.util.Map<java.lang.Integer,V>keySet in interface Int2ObjectMap<V>keySet in class AbstractInt2ObjectMap<V>public ObjectCollection<V> values()
values in interface java.util.Map<java.lang.Integer,V>values in interface Int2ObjectMap<V>values in class AbstractInt2ObjectMap<V>public ObjectSet<Int2ObjectMap.Entry<V>> int2ObjectEntrySet()
Int2ObjectMapint2ObjectEntrySet in interface Int2ObjectMap<V>