public static class Byte2FloatMaps.UnmodifyableMap extends AbstractByte2FloatMap implements Byte2FloatMap
AbstractByte2FloatMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Byte2FloatMap.Entry, Byte2FloatMap.FastEntrySet| Modifier and Type | Method and Description |
|---|---|
float |
addTo(byte key,
float value)
A Helper method to add a primitives together.
|
ObjectSet<Byte2FloatMap.Entry> |
byte2FloatEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
float |
getFloat(byte key)
A Type Specific get method to reduce boxing/unboxing
|
float |
getOrDefault(byte key,
float defaultValue)
A Type Specific getOrDefault method to reduce boxing/unboxing
|
ByteSet |
keySet() |
float |
put(byte key,
float value)
Type Specific method to reduce boxing/unboxing of values
|
float |
putIfAbsent(byte key,
float value)
Type Specific method to reduce boxing/unboxing of values
|
float |
remByte(byte key)
Type Specific remove function to reduce boxing/unboxing
|
float |
remByteOrDefault(byte key,
float defaultValue)
Type-Specific Remove function with a default return value if wanted.
|
boolean |
remove(byte 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(byte key,
float value)
Byte2FloatMapput in interface Byte2FloatMapkey - the key that should be inserted,value - the value that should be insertedMap.put(Object, Object)public float putIfAbsent(byte key,
float value)
Byte2FloatMapputIfAbsent in interface Byte2FloatMapkey - the key that should be inserted,value - the value that should be insertedMap.putIfAbsent(Object, Object)public float addTo(byte key,
float value)
Byte2FloatMapaddTo in interface Byte2FloatMapkey - the key that should be inserted,value - the value that should be inserted / addedpublic float remByte(byte key)
Byte2FloatMapremByte in interface Byte2FloatMapkey - the element that should be removedpublic float remByteOrDefault(byte key,
float defaultValue)
Byte2FloatMapremByteOrDefault in interface Byte2FloatMapkey - the element that should be removeddefaultValue - the value that should be returned if the entry doesn't existMap.remove(Object, Object)public boolean remove(byte key,
float value)
Byte2FloatMapremove in interface Byte2FloatMapkey - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)public float getFloat(byte key)
Byte2FloatMapgetFloat in interface Byte2FloatFunctiongetFloat in interface Byte2FloatMapkey - the key that is searched forpublic float getOrDefault(byte key,
float defaultValue)
Byte2FloatMapgetOrDefault in interface Byte2FloatMapgetOrDefault in class AbstractByte2FloatMapkey - the key that is searched fordefaultValue - the value that should be returned if the key is not presentpublic ByteSet keySet()
keySet in interface java.util.Map<java.lang.Byte,java.lang.Float>keySet in interface Byte2FloatMapkeySet in class AbstractByte2FloatMappublic FloatCollection values()
values in interface java.util.Map<java.lang.Byte,java.lang.Float>values in interface Byte2FloatMapvalues in class AbstractByte2FloatMappublic ObjectSet<Byte2FloatMap.Entry> byte2FloatEntrySet()
Byte2FloatMapbyte2FloatEntrySet in interface Byte2FloatMap