public static class Double2FloatMaps.UnmodifyableMap extends AbstractDouble2FloatMap implements Double2FloatMap
AbstractDouble2FloatMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Double2FloatMap.Entry, Double2FloatMap.FastEntrySet| Modifier and Type | Method and Description |
|---|---|
float |
addTo(double key,
float value)
A Helper method to add a primitives together.
|
ObjectSet<Double2FloatMap.Entry> |
double2FloatEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
float |
getFloat(double key)
A Type Specific get method to reduce boxing/unboxing
|
float |
getOrDefault(double key,
float defaultValue)
A Type Specific getOrDefault method to reduce boxing/unboxing
|
DoubleSet |
keySet() |
float |
put(double key,
float value)
Type Specific method to reduce boxing/unboxing of values
|
float |
putIfAbsent(double key,
float value)
Type Specific method to reduce boxing/unboxing of values
|
float |
remDouble(double key)
Type Specific remove function to reduce boxing/unboxing
|
float |
remDoubleOrDefault(double key,
float defaultValue)
Type-Specific Remove function with a default return value if wanted.
|
boolean |
remove(double key,
float value)
Type Specific remove function to reduce boxing/unboxing
|
FloatCollection |
values() |
addToAll, computeFloat, computeFloatIfAbsent, computeFloatIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getDefaultReturnValue, getOrDefault, hashCode, mergeAllFloat, mergeFloat, putAll, putAll, putAll, putAllIfAbsent, replace, replace, replaceFloats, replaceFloats, setDefaultReturnValueclear, containsKey, containsValue, isEmpty, put, remove, size, toStringaddToAll, compute, computeFloat, computeFloatIfAbsent, computeFloatIfPresent, computeIfAbsent, computeIfPresent, containsKey, containsKey, containsValue, containsValue, entrySet, forEach, forEach, get, getDefaultReturnValue, getOrDefault, merge, mergeAllFloat, mergeFloat, put, putAll, putAll, putAll, putAllIfAbsent, putIfAbsent, remove, remove, replace, replace, replace, replace, replaceAll, replaceFloats, replaceFloats, setDefaultReturnValuepublic float put(double key,
float value)
Double2FloatMapput in interface Double2FloatMapkey - the key that should be inserted,value - the value that should be insertedMap.put(Object, Object)public float putIfAbsent(double key,
float value)
Double2FloatMapputIfAbsent in interface Double2FloatMapkey - the key that should be inserted,value - the value that should be insertedMap.putIfAbsent(Object, Object)public float addTo(double key,
float value)
Double2FloatMapaddTo in interface Double2FloatMapkey - the key that should be inserted,value - the value that should be inserted / addedpublic float remDouble(double key)
Double2FloatMapremDouble in interface Double2FloatMapkey - the element that should be removedpublic float remDoubleOrDefault(double key,
float defaultValue)
Double2FloatMapremDoubleOrDefault in interface Double2FloatMapkey - 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,
float value)
Double2FloatMapremove in interface Double2FloatMapkey - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)public float getFloat(double key)
Double2FloatMapgetFloat in interface Double2FloatFunctiongetFloat in interface Double2FloatMapkey - the key that is searched forpublic float getOrDefault(double key,
float defaultValue)
Double2FloatMapgetOrDefault in interface Double2FloatMapgetOrDefault in class AbstractDouble2FloatMapkey - 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,java.lang.Float>keySet in interface Double2FloatMapkeySet in class AbstractDouble2FloatMappublic FloatCollection values()
values in interface java.util.Map<java.lang.Double,java.lang.Float>values in interface Double2FloatMapvalues in class AbstractDouble2FloatMappublic ObjectSet<Double2FloatMap.Entry> double2FloatEntrySet()
Double2FloatMapdouble2FloatEntrySet in interface Double2FloatMap