public static class Short2FloatMaps.UnmodifyableMap extends AbstractShort2FloatMap implements Short2FloatMap
AbstractShort2FloatMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Short2FloatMap.Entry, Short2FloatMap.FastEntrySet| Modifier and Type | Method and Description |
|---|---|
float |
addTo(short key,
float value)
A Helper method to add a primitives together.
|
float |
getFloat(short key)
A Type Specific get method to reduce boxing/unboxing
|
float |
getOrDefault(short key,
float defaultValue)
A Type Specific getOrDefault method to reduce boxing/unboxing
|
ShortSet |
keySet() |
float |
put(short key,
float value)
Type Specific method to reduce boxing/unboxing of values
|
float |
putIfAbsent(short key,
float value)
Type Specific method to reduce boxing/unboxing of values
|
boolean |
remove(short key,
float value)
Type Specific remove function to reduce boxing/unboxing
|
float |
remShort(short key)
Type Specific remove function to reduce boxing/unboxing
|
float |
remShortOrDefault(short key,
float defaultValue)
Type-Specific Remove function with a default return value if wanted.
|
ObjectSet<Short2FloatMap.Entry> |
short2FloatEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
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(short key,
float value)
Short2FloatMapput in interface Short2FloatMapkey - the key that should be inserted,value - the value that should be insertedMap.put(Object, Object)public float putIfAbsent(short key,
float value)
Short2FloatMapputIfAbsent in interface Short2FloatMapkey - the key that should be inserted,value - the value that should be insertedMap.putIfAbsent(Object, Object)public float addTo(short key,
float value)
Short2FloatMapaddTo in interface Short2FloatMapkey - the key that should be inserted,value - the value that should be inserted / addedpublic float remShort(short key)
Short2FloatMapremShort in interface Short2FloatMapkey - the element that should be removedpublic float remShortOrDefault(short key,
float defaultValue)
Short2FloatMapremShortOrDefault in interface Short2FloatMapkey - the element that should be removeddefaultValue - the value that should be returned if the entry doesn't existMap.remove(Object, Object)public boolean remove(short key,
float value)
Short2FloatMapremove in interface Short2FloatMapkey - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)public float getFloat(short key)
Short2FloatMapgetFloat in interface Short2FloatFunctiongetFloat in interface Short2FloatMapkey - the key that is searched forpublic float getOrDefault(short key,
float defaultValue)
Short2FloatMapgetOrDefault in interface Short2FloatMapgetOrDefault in class AbstractShort2FloatMapkey - the key that is searched fordefaultValue - the value that should be returned if the key is not presentpublic ShortSet keySet()
keySet in interface java.util.Map<java.lang.Short,java.lang.Float>keySet in interface Short2FloatMapkeySet in class AbstractShort2FloatMappublic FloatCollection values()
values in interface java.util.Map<java.lang.Short,java.lang.Float>values in interface Short2FloatMapvalues in class AbstractShort2FloatMappublic ObjectSet<Short2FloatMap.Entry> short2FloatEntrySet()
Short2FloatMapshort2FloatEntrySet in interface Short2FloatMap