public static class Char2CharMaps.EmptyMap extends AbstractChar2CharMap
AbstractChar2CharMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Char2CharMap.Entry, Char2CharMap.FastEntrySet| Constructor and Description |
|---|
EmptyMap() |
| Modifier and Type | Method and Description |
|---|---|
char |
addTo(char key,
char value)
A Helper method to add a primitives together.
|
ObjectSet<Char2CharMap.Entry> |
char2CharEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
char |
getChar(char key)
A Type Specific get method to reduce boxing/unboxing
|
char |
getOrDefault(char key,
char defaultValue)
A Type Specific getOrDefault method to reduce boxing/unboxing
|
CharSet |
keySet() |
char |
put(char key,
char value)
Type Specific method to reduce boxing/unboxing of values
|
char |
putIfAbsent(char key,
char value)
Type Specific method to reduce boxing/unboxing of values
|
char |
remChar(char key)
Type Specific remove function to reduce boxing/unboxing
|
char |
remCharOrDefault(char key,
char defaultValue)
Type-Specific Remove function with a default return value if wanted.
|
boolean |
remove(char 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(char key,
char value)
Char2CharMapkey - the key that should be inserted,value - the value that should be insertedMap.put(Object, Object)public char putIfAbsent(char key,
char value)
Char2CharMapkey - the key that should be inserted,value - the value that should be insertedMap.putIfAbsent(Object, Object)public char addTo(char key,
char value)
Char2CharMapkey - the key that should be inserted,value - the value that should be inserted / addedpublic char remChar(char key)
Char2CharMapkey - the element that should be removedpublic char remCharOrDefault(char key,
char defaultValue)
Char2CharMapkey - 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,
char value)
Char2CharMapkey - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)public char getChar(char key)
Char2CharMapkey - the key that is searched forpublic char getOrDefault(char key,
char defaultValue)
Char2CharMapgetOrDefault in interface Char2CharMapgetOrDefault in class AbstractChar2CharMapkey - 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.Character>keySet in interface Char2CharMapkeySet in class AbstractChar2CharMappublic CharCollection values()
values in interface java.util.Map<java.lang.Character,java.lang.Character>values in interface Char2CharMapvalues in class AbstractChar2CharMappublic ObjectSet<Char2CharMap.Entry> char2CharEntrySet()
Char2CharMap