public static class Char2IntMaps.SingletonMap extends AbstractChar2IntMap
AbstractChar2IntMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Char2IntMap.Entry, Char2IntMap.FastEntrySet| Modifier and Type | Method and Description |
|---|---|
int |
addTo(char key,
int value)
A Helper method to add a primitives together.
|
ObjectSet<Char2IntMap.Entry> |
char2IntEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
int |
getInt(char key)
A Type Specific get method to reduce boxing/unboxing
|
int |
getOrDefault(char key,
int defaultValue)
A Type Specific getOrDefault method to reduce boxing/unboxing
|
CharSet |
keySet() |
int |
put(char key,
int value)
Type Specific method to reduce boxing/unboxing of values
|
int |
putIfAbsent(char key,
int value)
Type Specific method to reduce boxing/unboxing of values
|
int |
remChar(char key)
Type Specific remove function to reduce boxing/unboxing
|
int |
remCharOrDefault(char key,
int defaultValue)
Type-Specific Remove function with a default return value if wanted.
|
boolean |
remove(char key,
int value)
Type Specific remove function to reduce boxing/unboxing
|
IntCollection |
values() |
addToAll, computeInt, computeIntIfAbsent, computeIntIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getDefaultReturnValue, getOrDefault, hashCode, mergeAllInt, mergeInt, putAll, putAll, putAll, putAllIfAbsent, replace, replace, replaceInts, replaceInts, setDefaultReturnValueclear, containsKey, containsValue, isEmpty, put, remove, size, toStringcompute, computeIfAbsent, computeIfPresent, containsKey, containsValue, forEach, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAllpublic int put(char key,
int value)
Char2IntMapkey - the key that should be inserted,value - the value that should be insertedMap.put(Object, Object)public int putIfAbsent(char key,
int value)
Char2IntMapkey - the key that should be inserted,value - the value that should be insertedMap.putIfAbsent(Object, Object)public int addTo(char key,
int value)
Char2IntMapkey - the key that should be inserted,value - the value that should be inserted / addedpublic int remChar(char key)
Char2IntMapkey - the element that should be removedpublic int remCharOrDefault(char key,
int defaultValue)
Char2IntMapkey - 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,
int value)
Char2IntMapkey - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)public int getInt(char key)
Char2IntMapkey - the key that is searched forpublic int getOrDefault(char key,
int defaultValue)
Char2IntMapgetOrDefault in interface Char2IntMapgetOrDefault in class AbstractChar2IntMapkey - 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.Integer>keySet in interface Char2IntMapkeySet in class AbstractChar2IntMappublic IntCollection values()
values in interface java.util.Map<java.lang.Character,java.lang.Integer>values in interface Char2IntMapvalues in class AbstractChar2IntMappublic ObjectSet<Char2IntMap.Entry> char2IntEntrySet()
Char2IntMap