T - the type of elements maintained by this Collectionpublic static class Object2CharMaps.SingletonMap<T> extends AbstractObject2CharMap<T>
AbstractObject2CharMap.BasicEntry<T>java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Object2CharMap.Entry<T>, Object2CharMap.FastEntrySet<T>| Modifier and Type | Method and Description |
|---|---|
char |
addTo(T key,
char value)
A Helper method to add a primitives together.
|
char |
getChar(T key)
A Type Specific get method to reduce boxing/unboxing
|
char |
getOrDefault(T key,
char defaultValue)
A Type Specific getOrDefault method to reduce boxing/unboxing
|
ObjectSet<T> |
keySet() |
ObjectSet<Object2CharMap.Entry<T>> |
object2CharEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
char |
put(T key,
char value)
Type Specific method to reduce boxing/unboxing of values
|
char |
putIfAbsent(T key,
char value)
Type Specific method to reduce boxing/unboxing of values
|
char |
rem(T key)
Type Specific remove function to reduce boxing/unboxing
|
char |
remOrDefault(T key,
char defaultValue)
Type-Specific Remove function with a default return value if wanted.
|
boolean |
remove(T 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, containsValue, isEmpty, put, remove, size, toStringcompute, computeIfAbsent, computeIfPresent, containsValue, forEach, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAllpublic char put(T key, char value)
Object2CharMapkey - the key that should be inserted,value - the value that should be insertedMap.put(Object, Object)public char putIfAbsent(T key, char value)
Object2CharMapkey - the key that should be inserted,value - the value that should be insertedMap.putIfAbsent(Object, Object)public char addTo(T key, char value)
Object2CharMapkey - the key that should be inserted,value - the value that should be inserted / addedpublic char rem(T key)
Object2CharMapkey - the element that should be removedpublic char remOrDefault(T key, char defaultValue)
Object2CharMapkey - the element that should be removeddefaultValue - the value that should be returned if the entry doesn't existMap.remove(Object, Object)public boolean remove(T key, char value)
Object2CharMapkey - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)public char getChar(T key)
Object2CharMapkey - the key that is searched forpublic char getOrDefault(T key, char defaultValue)
Object2CharMapkey - the key that is searched fordefaultValue - the value that should be returned if the key is not presentpublic ObjectSet<T> keySet()
keySet in interface java.util.Map<T,java.lang.Character>keySet in interface Object2CharMap<T>keySet in class AbstractObject2CharMap<T>public CharCollection values()
values in interface java.util.Map<T,java.lang.Character>values in interface Object2CharMap<T>values in class AbstractObject2CharMap<T>public ObjectSet<Object2CharMap.Entry<T>> object2CharEntrySet()
Object2CharMap