public static class Long2FloatMaps.UnmodifyableMap extends AbstractLong2FloatMap implements Long2FloatMap
AbstractLong2FloatMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Long2FloatMap.Entry, Long2FloatMap.FastEntrySet| Modifier and Type | Method and Description |
|---|---|
float |
addTo(long key,
float value)
A Helper method to add a primitives together.
|
float |
getFloat(long key)
A Type Specific get method to reduce boxing/unboxing
|
float |
getOrDefault(long key,
float defaultValue)
A Type Specific getOrDefault method to reduce boxing/unboxing
|
LongSet |
keySet() |
ObjectSet<Long2FloatMap.Entry> |
long2FloatEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
float |
put(long key,
float value)
Type Specific method to reduce boxing/unboxing of values
|
float |
putIfAbsent(long key,
float value)
Type Specific method to reduce boxing/unboxing of values
|
float |
remLong(long key)
Type Specific remove function to reduce boxing/unboxing
|
float |
remLongOrDefault(long key,
float defaultValue)
Type-Specific Remove function with a default return value if wanted.
|
boolean |
remove(long 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(long key,
float value)
Long2FloatMapput in interface Long2FloatMapkey - the key that should be inserted,value - the value that should be insertedMap.put(Object, Object)public float putIfAbsent(long key,
float value)
Long2FloatMapputIfAbsent in interface Long2FloatMapkey - the key that should be inserted,value - the value that should be insertedMap.putIfAbsent(Object, Object)public float addTo(long key,
float value)
Long2FloatMapaddTo in interface Long2FloatMapkey - the key that should be inserted,value - the value that should be inserted / addedpublic float remLong(long key)
Long2FloatMapremLong in interface Long2FloatMapkey - the element that should be removedpublic float remLongOrDefault(long key,
float defaultValue)
Long2FloatMapremLongOrDefault in interface Long2FloatMapkey - the element that should be removeddefaultValue - the value that should be returned if the entry doesn't existMap.remove(Object, Object)public boolean remove(long key,
float value)
Long2FloatMapremove in interface Long2FloatMapkey - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)public float getFloat(long key)
Long2FloatMapgetFloat in interface Long2FloatFunctiongetFloat in interface Long2FloatMapkey - the key that is searched forpublic float getOrDefault(long key,
float defaultValue)
Long2FloatMapgetOrDefault in interface Long2FloatMapgetOrDefault in class AbstractLong2FloatMapkey - the key that is searched fordefaultValue - the value that should be returned if the key is not presentpublic LongSet keySet()
keySet in interface java.util.Map<java.lang.Long,java.lang.Float>keySet in interface Long2FloatMapkeySet in class AbstractLong2FloatMappublic FloatCollection values()
values in interface java.util.Map<java.lang.Long,java.lang.Float>values in interface Long2FloatMapvalues in class AbstractLong2FloatMappublic ObjectSet<Long2FloatMap.Entry> long2FloatEntrySet()
Long2FloatMaplong2FloatEntrySet in interface Long2FloatMap