public static class Float2LongMaps.UnmodifyableMap extends AbstractFloat2LongMap implements Float2LongMap
AbstractFloat2LongMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Float2LongMap.Entry, Float2LongMap.FastEntrySet| 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, toStringaddToAll, compute, computeIfAbsent, computeIfPresent, computeLong, computeLongIfAbsent, computeLongIfPresent, containsKey, containsKey, containsValue, containsValue, entrySet, forEach, forEach, get, getDefaultReturnValue, getOrDefault, merge, mergeAllLong, mergeLong, put, putAll, putAll, putAll, putAllIfAbsent, putIfAbsent, remove, remove, replace, replace, replace, replace, replaceAll, replaceLongs, replaceLongs, setDefaultReturnValuepublic long put(float key,
long value)
Float2LongMapput in interface Float2LongMapkey - the key that should be inserted,value - the value that should be insertedMap.put(Object, Object)public long putIfAbsent(float key,
long value)
Float2LongMapputIfAbsent in interface Float2LongMapkey - the key that should be inserted,value - the value that should be insertedMap.putIfAbsent(Object, Object)public long addTo(float key,
long value)
Float2LongMapaddTo in interface Float2LongMapkey - the key that should be inserted,value - the value that should be inserted / addedpublic long remFloat(float key)
Float2LongMapremFloat in interface Float2LongMapkey - the element that should be removedpublic long remFloatOrDefault(float key,
long defaultValue)
Float2LongMapremFloatOrDefault in interface 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)
Float2LongMapremove in interface Float2LongMapkey - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)public long getLong(float key)
Float2LongMapgetLong in interface Float2LongFunctiongetLong in interface 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()
Float2LongMapfloat2LongEntrySet in interface Float2LongMap