public static class Int2CharMaps.EmptyMap extends AbstractInt2CharMap
AbstractInt2CharMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Int2CharMap.Entry, Int2CharMap.FastEntrySet| Constructor and Description |
|---|
EmptyMap() |
| Modifier and Type | Method and Description |
|---|---|
char |
addTo(int key,
char value)
A Helper method to add a primitives together.
|
char |
getChar(int key)
A Type Specific get method to reduce boxing/unboxing
|
char |
getOrDefault(int key,
char defaultValue)
A Type Specific getOrDefault method to reduce boxing/unboxing
|
ObjectSet<Int2CharMap.Entry> |
int2CharEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
IntSet |
keySet() |
char |
put(int key,
char value)
Type Specific method to reduce boxing/unboxing of values
|
char |
putIfAbsent(int key,
char value)
Type Specific method to reduce boxing/unboxing of values
|
char |
remInt(int key)
Type Specific remove function to reduce boxing/unboxing
|
char |
remIntOrDefault(int key,
char defaultValue)
Type-Specific Remove function with a default return value if wanted.
|
boolean |
remove(int 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(int key,
char value)
Int2CharMapkey - the key that should be inserted,value - the value that should be insertedMap.put(Object, Object)public char putIfAbsent(int key,
char value)
Int2CharMapkey - the key that should be inserted,value - the value that should be insertedMap.putIfAbsent(Object, Object)public char addTo(int key,
char value)
Int2CharMapkey - the key that should be inserted,value - the value that should be inserted / addedpublic char remInt(int key)
Int2CharMapkey - the element that should be removedpublic char remIntOrDefault(int key,
char defaultValue)
Int2CharMapkey - the element that should be removeddefaultValue - the value that should be returned if the entry doesn't existMap.remove(Object, Object)public boolean remove(int key,
char value)
Int2CharMapkey - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)public char getChar(int key)
Int2CharMapkey - the key that is searched forpublic char getOrDefault(int key,
char defaultValue)
Int2CharMapgetOrDefault in interface Int2CharMapgetOrDefault in class AbstractInt2CharMapkey - the key that is searched fordefaultValue - the value that should be returned if the key is not presentpublic IntSet keySet()
keySet in interface java.util.Map<java.lang.Integer,java.lang.Character>keySet in interface Int2CharMapkeySet in class AbstractInt2CharMappublic CharCollection values()
values in interface java.util.Map<java.lang.Integer,java.lang.Character>values in interface Int2CharMapvalues in class AbstractInt2CharMappublic ObjectSet<Int2CharMap.Entry> int2CharEntrySet()
Int2CharMap