public static class Char2BooleanMaps.EmptyMap extends AbstractChar2BooleanMap
AbstractChar2BooleanMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Char2BooleanMap.Entry, Char2BooleanMap.FastEntrySet| Constructor and Description |
|---|
EmptyMap() |
| Modifier and Type | Method and Description |
|---|---|
ObjectSet<Char2BooleanMap.Entry> |
char2BooleanEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
boolean |
getBoolean(char key)
A Type Specific get method to reduce boxing/unboxing
|
boolean |
getOrDefault(char key,
boolean defaultValue)
A Type Specific getOrDefault method to reduce boxing/unboxing
|
CharSet |
keySet() |
boolean |
put(char key,
boolean value)
Type Specific method to reduce boxing/unboxing of values
|
boolean |
putIfAbsent(char key,
boolean value)
Type Specific method to reduce boxing/unboxing of values
|
boolean |
remChar(char key)
Type Specific remove function to reduce boxing/unboxing
|
boolean |
remCharOrDefault(char key,
boolean defaultValue)
Type-Specific Remove function with a default return value if wanted.
|
boolean |
remove(char key,
boolean value)
Type Specific remove function to reduce boxing/unboxing
|
BooleanCollection |
values() |
computeBoolean, computeBooleanIfAbsent, computeBooleanIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getDefaultReturnValue, getOrDefault, hashCode, mergeAllBoolean, mergeBoolean, putAll, putAll, putAll, putAllIfAbsent, replace, replace, replaceBooleans, replaceBooleans, setDefaultReturnValueclear, containsKey, containsValue, isEmpty, put, remove, size, toStringcompute, computeIfAbsent, computeIfPresent, containsKey, containsValue, forEach, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAllpublic boolean put(char key,
boolean value)
Char2BooleanMapkey - the key that should be inserted,value - the value that should be insertedMap.put(Object, Object)public boolean putIfAbsent(char key,
boolean value)
Char2BooleanMapkey - the key that should be inserted,value - the value that should be insertedMap.putIfAbsent(Object, Object)public boolean remChar(char key)
Char2BooleanMapkey - the element that should be removedpublic boolean remCharOrDefault(char key,
boolean defaultValue)
Char2BooleanMapkey - 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,
boolean value)
Char2BooleanMapkey - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)public boolean getBoolean(char key)
Char2BooleanMapkey - the key that is searched forpublic boolean getOrDefault(char key,
boolean defaultValue)
Char2BooleanMapgetOrDefault in interface Char2BooleanMapgetOrDefault in class AbstractChar2BooleanMapkey - 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.Boolean>keySet in interface Char2BooleanMapkeySet in class AbstractChar2BooleanMappublic BooleanCollection values()
values in interface java.util.Map<java.lang.Character,java.lang.Boolean>values in interface Char2BooleanMapvalues in class AbstractChar2BooleanMappublic ObjectSet<Char2BooleanMap.Entry> char2BooleanEntrySet()
Char2BooleanMap