public static class Double2CharMaps.EmptyMap extends AbstractDouble2CharMap
AbstractDouble2CharMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Double2CharMap.Entry, Double2CharMap.FastEntrySet| Constructor and Description |
|---|
EmptyMap() |
| Modifier and Type | Method and Description |
|---|---|
char |
addTo(double key,
char value)
A Helper method to add a primitives together.
|
ObjectSet<Double2CharMap.Entry> |
double2CharEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
char |
getChar(double key)
A Type Specific get method to reduce boxing/unboxing
|
char |
getOrDefault(double key,
char defaultValue)
A Type Specific getOrDefault method to reduce boxing/unboxing
|
DoubleSet |
keySet() |
char |
put(double key,
char value)
Type Specific method to reduce boxing/unboxing of values
|
char |
putIfAbsent(double key,
char value)
Type Specific method to reduce boxing/unboxing of values
|
char |
remDouble(double key)
Type Specific remove function to reduce boxing/unboxing
|
char |
remDoubleOrDefault(double key,
char defaultValue)
Type-Specific Remove function with a default return value if wanted.
|
boolean |
remove(double key,
char value)
Type Specific remove function to reduce boxing/unboxing
|
CharCollection |
values() |
addToAll, computeChar, computeCharIfAbsent, computeCharIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getDefaultReturnValue, getOrDefault, hashCode, mergeAllChar, mergeChar, putAll, putAll, putAll, putAllIfAbsent, replace, replace, replaceChars, replaceChars, setDefaultReturnValueclear, containsKey, containsValue, isEmpty, put, remove, size, toStringcompute, computeIfAbsent, computeIfPresent, containsKey, containsValue, forEach, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAllpublic char put(double key,
char value)
Double2CharMapkey - the key that should be inserted,value - the value that should be insertedMap.put(Object, Object)public char putIfAbsent(double key,
char value)
Double2CharMapkey - the key that should be inserted,value - the value that should be insertedMap.putIfAbsent(Object, Object)public char addTo(double key,
char value)
Double2CharMapkey - the key that should be inserted,value - the value that should be inserted / addedpublic char remDouble(double key)
Double2CharMapkey - the element that should be removedpublic char remDoubleOrDefault(double key,
char defaultValue)
Double2CharMapkey - the element that should be removeddefaultValue - the value that should be returned if the entry doesn't existMap.remove(Object, Object)public boolean remove(double key,
char value)
Double2CharMapkey - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)public char getChar(double key)
Double2CharMapkey - the key that is searched forpublic char getOrDefault(double key,
char defaultValue)
Double2CharMapgetOrDefault in interface Double2CharMapgetOrDefault in class AbstractDouble2CharMapkey - the key that is searched fordefaultValue - the value that should be returned if the key is not presentpublic DoubleSet keySet()
keySet in interface java.util.Map<java.lang.Double,java.lang.Character>keySet in interface Double2CharMapkeySet in class AbstractDouble2CharMappublic CharCollection values()
values in interface java.util.Map<java.lang.Double,java.lang.Character>values in interface Double2CharMapvalues in class AbstractDouble2CharMappublic ObjectSet<Double2CharMap.Entry> double2CharEntrySet()
Double2CharMap