T - the type of elements maintained by this Collectionpublic class Enum2BooleanMap<T extends java.lang.Enum<T>> extends AbstractObject2BooleanMap<T>
AbstractObject2BooleanMap.BasicEntry<T>java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Object2BooleanMap.Entry<T>, Object2BooleanMap.FastEntrySet<T>| Constructor and Description |
|---|
Enum2BooleanMap(java.lang.Class<T> keyType)
Default Constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsKey(java.lang.Object key) |
boolean |
containsValue(boolean value)
Type Specific method to reduce boxing/unboxing of values
|
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, entrySet, equals, forEach, get, getDefaultReturnValue, getOrDefault, hashCode, mergeAllBoolean, mergeBoolean, putAll, putAll, putAll, putAllIfAbsent, replace, replace, replaceBooleans, replaceBooleans, setDefaultReturnValueclear, containsValue, isEmpty, put, remove, size, toStringcompute, computeIfAbsent, computeIfPresent, containsValue, forEach, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAllpublic Enum2BooleanMap(java.lang.Class<T> keyType)
keyType - the type of Enum that should be usedpublic boolean put(T key, boolean value)
Object2BooleanMapkey - the key that should be inserted,value - the value that should be insertedMap.put(Object, Object)public boolean putIfAbsent(T key, boolean value)
Object2BooleanMapkey - the key that should be inserted,value - the value that should be insertedMap.putIfAbsent(Object, Object)public boolean containsKey(java.lang.Object key)
containsKey in interface java.util.Map<T extends java.lang.Enum<T>,java.lang.Boolean>containsKey in class AbstractObject2BooleanMap<T extends java.lang.Enum<T>>public boolean containsValue(boolean value)
Object2BooleanMapcontainsValue in interface Object2BooleanMap<T extends java.lang.Enum<T>>containsValue in class AbstractObject2BooleanMap<T extends java.lang.Enum<T>>value - element that is searched forpublic boolean rem(T key)
Object2BooleanMapkey - the element that should be removedpublic boolean remOrDefault(T key, boolean defaultValue)
Object2BooleanMapkey - 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)
Object2BooleanMapkey - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)public boolean getBoolean(T key)
Object2BooleanMapkey - the key that is searched forpublic boolean getOrDefault(T key, boolean defaultValue)
Object2BooleanMapkey - the key that is searched fordefaultValue - the value that should be returned if the key is not presentpublic ObjectSet<Object2BooleanMap.Entry<T>> object2BooleanEntrySet()
Object2BooleanMappublic ObjectSet<T> keySet()
keySet in interface java.util.Map<T extends java.lang.Enum<T>,java.lang.Boolean>keySet in interface Object2BooleanMap<T extends java.lang.Enum<T>>keySet in class AbstractObject2BooleanMap<T extends java.lang.Enum<T>>public BooleanCollection values()
values in interface java.util.Map<T extends java.lang.Enum<T>,java.lang.Boolean>values in interface Object2BooleanMap<T extends java.lang.Enum<T>>values in class AbstractObject2BooleanMap<T extends java.lang.Enum<T>>