public static class Float2FloatMaps.EmptyMap extends AbstractFloat2FloatMap
AbstractFloat2FloatMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Float2FloatMap.Entry, Float2FloatMap.FastEntrySet| Constructor and Description |
|---|
EmptyMap() |
| Modifier and Type | Method and Description |
|---|---|
float |
addTo(float key,
float value)
A Helper method to add a primitives together.
|
ObjectSet<Float2FloatMap.Entry> |
float2FloatEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
float |
getFloat(float key)
A Type Specific get method to reduce boxing/unboxing
|
float |
getOrDefault(float key,
float defaultValue)
A Type Specific getOrDefault method to reduce boxing/unboxing
|
FloatSet |
keySet() |
float |
put(float key,
float value)
Type Specific method to reduce boxing/unboxing of values
|
float |
putIfAbsent(float key,
float value)
Type Specific method to reduce boxing/unboxing of values
|
float |
remFloat(float key)
Type Specific remove function to reduce boxing/unboxing
|
float |
remFloatOrDefault(float key,
float defaultValue)
Type-Specific Remove function with a default return value if wanted.
|
boolean |
remove(float 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, toStringcompute, computeIfAbsent, computeIfPresent, containsKey, containsValue, forEach, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAllpublic float put(float key,
float value)
Float2FloatMapkey - the key that should be inserted,value - the value that should be insertedMap.put(Object, Object)public float putIfAbsent(float key,
float value)
Float2FloatMapkey - the key that should be inserted,value - the value that should be insertedMap.putIfAbsent(Object, Object)public float addTo(float key,
float value)
Float2FloatMapkey - the key that should be inserted,value - the value that should be inserted / addedpublic float remFloat(float key)
Float2FloatMapkey - the element that should be removedpublic float remFloatOrDefault(float key,
float defaultValue)
Float2FloatMapkey - 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,
float value)
Float2FloatMapkey - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)public float getFloat(float key)
Float2FloatMapkey - the key that is searched forpublic float getOrDefault(float key,
float defaultValue)
Float2FloatMapgetOrDefault in interface Float2FloatMapgetOrDefault in class AbstractFloat2FloatMapkey - 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.Float>keySet in interface Float2FloatMapkeySet in class AbstractFloat2FloatMappublic FloatCollection values()
values in interface java.util.Map<java.lang.Float,java.lang.Float>values in interface Float2FloatMapvalues in class AbstractFloat2FloatMappublic ObjectSet<Float2FloatMap.Entry> float2FloatEntrySet()
Float2FloatMap