V - the type of elements maintained by this Collectionpublic static class Double2ObjectMaps.UnmodifyableMap<V> extends AbstractDouble2ObjectMap<V> implements Double2ObjectMap<V>
AbstractDouble2ObjectMap.BasicEntry<V>java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Double2ObjectMap.Entry<V>, Double2ObjectMap.FastEntrySet<V>| Modifier and Type | Method and Description |
|---|---|
ObjectSet<Double2ObjectMap.Entry<V>> |
double2ObjectEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
V |
getObject(double key)
A Type Specific get method to reduce boxing/unboxing
|
V |
getOrDefault(double key,
V defaultValue)
A Type Specific getOrDefault method to reduce boxing/unboxing
|
DoubleSet |
keySet() |
V |
put(double key,
V value)
Type Specific method to reduce boxing/unboxing of values
|
V |
putIfAbsent(double key,
V value)
Type Specific method to reduce boxing/unboxing of values
|
V |
remDouble(double key)
Type Specific remove function to reduce boxing/unboxing
|
V |
remDoubleOrDefault(double key,
V defaultValue)
Type-Specific Remove function with a default return value if wanted.
|
boolean |
remove(double 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(double key, V value)
Double2ObjectMapput in interface Double2ObjectMap<V>key - the key that should be inserted,value - the value that should be insertedMap.put(Object, Object)public V putIfAbsent(double key, V value)
Double2ObjectMapputIfAbsent in interface Double2ObjectMap<V>key - the key that should be inserted,value - the value that should be insertedMap.putIfAbsent(Object, Object)public V remDouble(double key)
Double2ObjectMapremDouble in interface Double2ObjectMap<V>key - the element that should be removedpublic V remDoubleOrDefault(double key, V defaultValue)
Double2ObjectMapremDoubleOrDefault in interface Double2ObjectMap<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(double key,
V value)
Double2ObjectMapremove in interface Double2ObjectMap<V>key - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)public V getObject(double key)
Double2ObjectMapgetObject in interface Double2ObjectFunction<V>getObject in interface Double2ObjectMap<V>key - the key that is searched forpublic V getOrDefault(double key, V defaultValue)
Double2ObjectMapgetOrDefault in interface Double2ObjectMap<V>getOrDefault in class AbstractDouble2ObjectMap<V>key - the key that is searched fordefaultValue - the value that should be returned if the key is not presentpublic DoubleSet keySet()
keySet in interface java.util.Map<java.lang.Double,V>keySet in interface Double2ObjectMap<V>keySet in class AbstractDouble2ObjectMap<V>public ObjectCollection<V> values()
values in interface java.util.Map<java.lang.Double,V>values in interface Double2ObjectMap<V>values in class AbstractDouble2ObjectMap<V>public ObjectSet<Double2ObjectMap.Entry<V>> double2ObjectEntrySet()
Double2ObjectMapdouble2ObjectEntrySet in interface Double2ObjectMap<V>