public static class Float2DoubleMaps.EmptyMap extends AbstractFloat2DoubleMap
AbstractFloat2DoubleMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Float2DoubleMap.Entry, Float2DoubleMap.FastEntrySet| Constructor and Description |
|---|
EmptyMap() |
| Modifier and Type | Method and Description |
|---|---|
double |
addTo(float key,
double value)
A Helper method to add a primitives together.
|
ObjectSet<Float2DoubleMap.Entry> |
float2DoubleEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
double |
getDouble(float key)
A Type Specific get method to reduce boxing/unboxing
|
double |
getOrDefault(float key,
double defaultValue)
A Type Specific getOrDefault method to reduce boxing/unboxing
|
FloatSet |
keySet() |
double |
put(float key,
double value)
Type Specific method to reduce boxing/unboxing of values
|
double |
putIfAbsent(float key,
double value)
Type Specific method to reduce boxing/unboxing of values
|
double |
remFloat(float key)
Type Specific remove function to reduce boxing/unboxing
|
double |
remFloatOrDefault(float key,
double defaultValue)
Type-Specific Remove function with a default return value if wanted.
|
boolean |
remove(float key,
double value)
Type Specific remove function to reduce boxing/unboxing
|
DoubleCollection |
values() |
addToAll, computeDouble, computeDoubleIfAbsent, computeDoubleIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getDefaultReturnValue, getOrDefault, hashCode, mergeAllDouble, mergeDouble, putAll, putAll, putAll, putAllIfAbsent, replace, replace, replaceDoubles, replaceDoubles, setDefaultReturnValueclear, containsKey, containsValue, isEmpty, put, remove, size, toStringcompute, computeIfAbsent, computeIfPresent, containsKey, containsValue, forEach, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAllpublic double put(float key,
double value)
Float2DoubleMapkey - the key that should be inserted,value - the value that should be insertedMap.put(Object, Object)public double putIfAbsent(float key,
double value)
Float2DoubleMapkey - the key that should be inserted,value - the value that should be insertedMap.putIfAbsent(Object, Object)public double addTo(float key,
double value)
Float2DoubleMapkey - the key that should be inserted,value - the value that should be inserted / addedpublic double remFloat(float key)
Float2DoubleMapkey - the element that should be removedpublic double remFloatOrDefault(float key,
double defaultValue)
Float2DoubleMapkey - the element that should be removeddefaultValue - the value that should be returned if the entry doesn't existMap.remove(Object, Object)public boolean remove(float key,
double value)
Float2DoubleMapkey - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)public double getDouble(float key)
Float2DoubleMapkey - the key that is searched forpublic double getOrDefault(float key,
double defaultValue)
Float2DoubleMapgetOrDefault in interface Float2DoubleMapgetOrDefault in class AbstractFloat2DoubleMapkey - the key that is searched fordefaultValue - the value that should be returned if the key is not presentpublic FloatSet keySet()
keySet in interface java.util.Map<java.lang.Float,java.lang.Double>keySet in interface Float2DoubleMapkeySet in class AbstractFloat2DoubleMappublic DoubleCollection values()
values in interface java.util.Map<java.lang.Float,java.lang.Double>values in interface Float2DoubleMapvalues in class AbstractFloat2DoubleMappublic ObjectSet<Float2DoubleMap.Entry> float2DoubleEntrySet()
Float2DoubleMap