public static class Char2DoubleMaps.SingletonMap extends AbstractChar2DoubleMap
AbstractChar2DoubleMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Char2DoubleMap.Entry, Char2DoubleMap.FastEntrySet| Modifier and Type | Method and Description |
|---|---|
double |
addTo(char key,
double value)
A Helper method to add a primitives together.
|
ObjectSet<Char2DoubleMap.Entry> |
char2DoubleEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
double |
getDouble(char key)
A Type Specific get method to reduce boxing/unboxing
|
double |
getOrDefault(char key,
double defaultValue)
A Type Specific getOrDefault method to reduce boxing/unboxing
|
CharSet |
keySet() |
double |
put(char key,
double value)
Type Specific method to reduce boxing/unboxing of values
|
double |
putIfAbsent(char key,
double value)
Type Specific method to reduce boxing/unboxing of values
|
double |
remChar(char key)
Type Specific remove function to reduce boxing/unboxing
|
double |
remCharOrDefault(char key,
double defaultValue)
Type-Specific Remove function with a default return value if wanted.
|
boolean |
remove(char key,
double value)
Type Specific remove function to reduce boxing/unboxing
|
DoubleCollection |
values() |
addToAll, computeDouble, computeDoubleIfAbsent, computeDoubleIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getDefaultReturnValue, getOrDefault, hashCode, mergeAllDouble, mergeDouble, putAll, putAll, putAll, putAllIfAbsent, replace, replace, replaceDoubles, replaceDoubles, setDefaultReturnValueclear, containsKey, containsValue, isEmpty, put, remove, size, toStringcompute, computeIfAbsent, computeIfPresent, containsKey, containsValue, forEach, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAllpublic double put(char key,
double value)
Char2DoubleMapkey - the key that should be inserted,value - the value that should be insertedMap.put(Object, Object)public double putIfAbsent(char key,
double value)
Char2DoubleMapkey - the key that should be inserted,value - the value that should be insertedMap.putIfAbsent(Object, Object)public double addTo(char key,
double value)
Char2DoubleMapkey - the key that should be inserted,value - the value that should be inserted / addedpublic double remChar(char key)
Char2DoubleMapkey - the element that should be removedpublic double remCharOrDefault(char key,
double defaultValue)
Char2DoubleMapkey - 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,
double value)
Char2DoubleMapkey - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)public double getDouble(char key)
Char2DoubleMapkey - the key that is searched forpublic double getOrDefault(char key,
double defaultValue)
Char2DoubleMapgetOrDefault in interface Char2DoubleMapgetOrDefault in class AbstractChar2DoubleMapkey - 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.Double>keySet in interface Char2DoubleMapkeySet in class AbstractChar2DoubleMappublic DoubleCollection values()
values in interface java.util.Map<java.lang.Character,java.lang.Double>values in interface Char2DoubleMapvalues in class AbstractChar2DoubleMappublic ObjectSet<Char2DoubleMap.Entry> char2DoubleEntrySet()
Char2DoubleMap