V - the type of elements maintained by this Collectionpublic static class Char2ObjectMaps.SingletonMap<V> extends AbstractChar2ObjectMap<V>
AbstractChar2ObjectMap.BasicEntry<V>java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Char2ObjectMap.Entry<V>, Char2ObjectMap.FastEntrySet<V>| Modifier and Type | Method and Description |
|---|---|
ObjectSet<Char2ObjectMap.Entry<V>> |
char2ObjectEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
V |
getObject(char key)
A Type Specific get method to reduce boxing/unboxing
|
V |
getOrDefault(char key,
V defaultValue)
A Type Specific getOrDefault method to reduce boxing/unboxing
|
CharSet |
keySet() |
V |
put(char key,
V value)
Type Specific method to reduce boxing/unboxing of values
|
V |
putIfAbsent(char key,
V value)
Type Specific method to reduce boxing/unboxing of values
|
V |
remChar(char key)
Type Specific remove function to reduce boxing/unboxing
|
V |
remCharOrDefault(char key,
V defaultValue)
Type-Specific Remove function with a default return value if wanted.
|
boolean |
remove(char key,
V value)
Type Specific remove function to reduce boxing/unboxing
|
ObjectCollection<V> |
values() |
compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getDefaultReturnValue, getOrDefault, hashCode, merge, mergeAll, putAll, putAll, putAll, putAllIfAbsent, replace, replace, replaceObjects, replaceObjects, setDefaultReturnValueclear, containsKey, isEmpty, put, remove, size, toStringcompute, computeIfAbsent, computeIfPresent, containsKey, forEach, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAllpublic V put(char key, V value)
Char2ObjectMapkey - the key that should be inserted,value - the value that should be insertedMap.put(Object, Object)public V putIfAbsent(char key, V value)
Char2ObjectMapkey - the key that should be inserted,value - the value that should be insertedMap.putIfAbsent(Object, Object)public V remChar(char key)
Char2ObjectMapkey - the element that should be removedpublic V remCharOrDefault(char key, V defaultValue)
Char2ObjectMapkey - 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,
V value)
Char2ObjectMapkey - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)public V getObject(char key)
Char2ObjectMapkey - the key that is searched forpublic V getOrDefault(char key, V defaultValue)
Char2ObjectMapgetOrDefault in interface Char2ObjectMap<V>getOrDefault in class AbstractChar2ObjectMap<V>key - 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,V>keySet in interface Char2ObjectMap<V>keySet in class AbstractChar2ObjectMap<V>public ObjectCollection<V> values()
values in interface java.util.Map<java.lang.Character,V>values in interface Char2ObjectMap<V>values in class AbstractChar2ObjectMap<V>public ObjectSet<Char2ObjectMap.Entry<V>> char2ObjectEntrySet()
Char2ObjectMap