public static class Float2LongMaps.EmptyMap extends AbstractFloat2LongMap
AbstractFloat2LongMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Float2LongMap.Entry, Float2LongMap.FastEntrySet| Constructor and Description |
|---|
EmptyMap() |
| Modifier and Type | Method and Description |
|---|---|
long |
addTo(float key,
long value)
A Helper method to add a primitives together.
|
ObjectSet<Float2LongMap.Entry> |
float2LongEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
long |
getLong(float key)
A Type Specific get method to reduce boxing/unboxing
|
long |
getOrDefault(float key,
long defaultValue)
A Type Specific getOrDefault method to reduce boxing/unboxing
|
FloatSet |
keySet() |
long |
put(float key,
long value)
Type Specific method to reduce boxing/unboxing of values
|
long |
putIfAbsent(float key,
long value)
Type Specific method to reduce boxing/unboxing of values
|
long |
remFloat(float key)
Type Specific remove function to reduce boxing/unboxing
|
long |
remFloatOrDefault(float key,
long defaultValue)
Type-Specific Remove function with a default return value if wanted.
|
boolean |
remove(float key,
long value)
Type Specific remove function to reduce boxing/unboxing
|
LongCollection |
values() |
addToAll, computeLong, computeLongIfAbsent, computeLongIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getDefaultReturnValue, getOrDefault, hashCode, mergeAllLong, mergeLong, putAll, putAll, putAll, putAllIfAbsent, replace, replace, replaceLongs, replaceLongs, setDefaultReturnValueclear, containsKey, containsValue, isEmpty, put, remove, size, toStringcompute, computeIfAbsent, computeIfPresent, containsKey, containsValue, forEach, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAllpublic long put(float key,
long value)
Float2LongMapkey - the key that should be inserted,value - the value that should be insertedMap.put(Object, Object)public long putIfAbsent(float key,
long value)
Float2LongMapkey - the key that should be inserted,value - the value that should be insertedMap.putIfAbsent(Object, Object)public long addTo(float key,
long value)
Float2LongMapkey - the key that should be inserted,value - the value that should be inserted / addedpublic long remFloat(float key)
Float2LongMapkey - the element that should be removedpublic long remFloatOrDefault(float key,
long defaultValue)
Float2LongMapkey - 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,
long value)
Float2LongMapkey - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)public long getLong(float key)
Float2LongMapkey - the key that is searched forpublic long getOrDefault(float key,
long defaultValue)
Float2LongMapgetOrDefault in interface Float2LongMapgetOrDefault in class AbstractFloat2LongMapkey - 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.Long>keySet in interface Float2LongMapkeySet in class AbstractFloat2LongMappublic LongCollection values()
values in interface java.util.Map<java.lang.Float,java.lang.Long>values in interface Float2LongMapvalues in class AbstractFloat2LongMappublic ObjectSet<Float2LongMap.Entry> float2LongEntrySet()
Float2LongMap