T - the type of elements maintained by this Collectionpublic static class Object2BooleanMaps.UnmodifyableMap<T> extends AbstractObject2BooleanMap<T> implements Object2BooleanMap<T>
AbstractObject2BooleanMap.BasicEntry<T>java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Object2BooleanMap.Entry<T>, Object2BooleanMap.FastEntrySet<T>| Modifier and Type | Method and Description |
|---|---|
boolean |
getBoolean(T key)
A Type Specific get method to reduce boxing/unboxing
|
boolean |
getOrDefault(T key,
boolean defaultValue)
A Type Specific getOrDefault method to reduce boxing/unboxing
|
ObjectSet<T> |
keySet() |
ObjectSet<Object2BooleanMap.Entry<T>> |
object2BooleanEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
boolean |
put(T key,
boolean value)
Type Specific method to reduce boxing/unboxing of values
|
boolean |
putIfAbsent(T key,
boolean value)
Type Specific method to reduce boxing/unboxing of values
|
boolean |
rem(T key)
Type Specific remove function to reduce boxing/unboxing
|
boolean |
remOrDefault(T key,
boolean defaultValue)
Type-Specific Remove function with a default return value if wanted.
|
boolean |
remove(T 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, containsValue, isEmpty, put, remove, size, toStringcompute, computeBoolean, computeBooleanIfAbsent, computeBooleanIfPresent, computeIfAbsent, computeIfPresent, containsValue, containsValue, entrySet, forEach, forEach, get, getDefaultReturnValue, getOrDefault, merge, mergeAllBoolean, mergeBoolean, put, putAll, putAll, putAll, putAllIfAbsent, putIfAbsent, remove, remove, replace, replace, replace, replace, replaceAll, replaceBooleans, replaceBooleans, setDefaultReturnValueclear, containsKey, equals, hashCode, isEmpty, putAll, sizepublic boolean put(T key, boolean value)
Object2BooleanMapput in interface Object2BooleanMap<T>key - the key that should be inserted,value - the value that should be insertedMap.put(Object, Object)public boolean putIfAbsent(T key, boolean value)
Object2BooleanMapputIfAbsent in interface Object2BooleanMap<T>key - the key that should be inserted,value - the value that should be insertedMap.putIfAbsent(Object, Object)public boolean rem(T key)
Object2BooleanMaprem in interface Object2BooleanMap<T>key - the element that should be removedpublic boolean remOrDefault(T key, boolean defaultValue)
Object2BooleanMapremOrDefault in interface Object2BooleanMap<T>key - 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, boolean value)
Object2BooleanMapremove in interface Object2BooleanMap<T>key - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)public boolean getBoolean(T key)
Object2BooleanMapgetBoolean in interface Object2BooleanFunction<T>getBoolean in interface Object2BooleanMap<T>key - the key that is searched forpublic boolean getOrDefault(T key, boolean defaultValue)
Object2BooleanMapgetOrDefault in interface Object2BooleanMap<T>key - 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.Boolean>keySet in interface Object2BooleanMap<T>keySet in class AbstractObject2BooleanMap<T>public BooleanCollection values()
values in interface java.util.Map<T,java.lang.Boolean>values in interface Object2BooleanMap<T>values in class AbstractObject2BooleanMap<T>public ObjectSet<Object2BooleanMap.Entry<T>> object2BooleanEntrySet()
Object2BooleanMapobject2BooleanEntrySet in interface Object2BooleanMap<T>