public static class Char2FloatMaps.SingletonMap extends AbstractChar2FloatMap
AbstractChar2FloatMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Char2FloatMap.Entry, Char2FloatMap.FastEntrySet| Modifier and Type | Method and Description |
|---|---|
float |
addTo(char key,
float value)
A Helper method to add a primitives together.
|
ObjectSet<Char2FloatMap.Entry> |
char2FloatEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
float |
getFloat(char key)
A Type Specific get method to reduce boxing/unboxing
|
float |
getOrDefault(char key,
float defaultValue)
A Type Specific getOrDefault method to reduce boxing/unboxing
|
CharSet |
keySet() |
float |
put(char key,
float value)
Type Specific method to reduce boxing/unboxing of values
|
float |
putIfAbsent(char key,
float value)
Type Specific method to reduce boxing/unboxing of values
|
float |
remChar(char key)
Type Specific remove function to reduce boxing/unboxing
|
float |
remCharOrDefault(char key,
float defaultValue)
Type-Specific Remove function with a default return value if wanted.
|
boolean |
remove(char 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, toStringcompute, computeIfAbsent, computeIfPresent, containsKey, containsValue, forEach, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAllpublic float put(char key,
float value)
Char2FloatMapkey - the key that should be inserted,value - the value that should be insertedMap.put(Object, Object)public float putIfAbsent(char key,
float value)
Char2FloatMapkey - the key that should be inserted,value - the value that should be insertedMap.putIfAbsent(Object, Object)public float addTo(char key,
float value)
Char2FloatMapkey - the key that should be inserted,value - the value that should be inserted / addedpublic float remChar(char key)
Char2FloatMapkey - the element that should be removedpublic float remCharOrDefault(char key,
float defaultValue)
Char2FloatMapkey - the element that should be removeddefaultValue - the value that should be returned if the entry doesn't existMap.remove(Object, Object)public boolean remove(char key,
float value)
Char2FloatMapkey - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)public float getFloat(char key)
Char2FloatMapkey - the key that is searched forpublic float getOrDefault(char key,
float defaultValue)
Char2FloatMapgetOrDefault in interface Char2FloatMapgetOrDefault in class AbstractChar2FloatMapkey - the key that is searched fordefaultValue - the value that should be returned if the key is not presentpublic CharSet keySet()
keySet in interface java.util.Map<java.lang.Character,java.lang.Float>keySet in interface Char2FloatMapkeySet in class AbstractChar2FloatMappublic FloatCollection values()
values in interface java.util.Map<java.lang.Character,java.lang.Float>values in interface Char2FloatMapvalues in class AbstractChar2FloatMappublic ObjectSet<Char2FloatMap.Entry> char2FloatEntrySet()
Char2FloatMap