T - the type of elements maintained by this Collectionpublic static class Object2BooleanMaps.SynchronizedMap<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 |
computeBoolean(T key,
ObjectBooleanUnaryOperator<T> mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
boolean |
computeBooleanIfAbsent(T key,
Object2BooleanFunction<T> mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
boolean |
computeBooleanIfPresent(T key,
ObjectBooleanUnaryOperator<T> mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
boolean |
containsValue(boolean value)
Type Specific method to reduce boxing/unboxing of values
|
void |
forEach(ObjectBooleanConsumer<T> action)
Type Specific forEach method to reduce boxing/unboxing
|
boolean |
getBoolean(T key)
A Type Specific get method to reduce boxing/unboxing
|
boolean |
getDefaultReturnValue()
Method to see what the default return value is.
|
boolean |
getOrDefault(T key,
boolean defaultValue)
A Type Specific getOrDefault method to reduce boxing/unboxing
|
ObjectSet<T> |
keySet() |
void |
mergeAllBoolean(Object2BooleanMap<T> m,
BooleanBooleanUnaryOperator mappingFunction)
A Bulk method for merging Maps.
|
boolean |
mergeBoolean(T key,
boolean value,
BooleanBooleanUnaryOperator mappingFunction)
A Type Specific merge method to reduce boxing/unboxing
|
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
|
void |
putAll(java.util.Map<? extends T,? extends java.lang.Boolean> m) |
void |
putAll(Object2BooleanMap<T> m)
Type Specific function for the bull putting of values
|
void |
putAll(T[] keys,
boolean[] values,
int offset,
int size)
Type Specific array method to bulk add elements into a map without creating a wrapper and increasing performances
|
void |
putAllIfAbsent(Object2BooleanMap<T> m)
Type-Specific bulk put method put elements into the map if not present.
|
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
|
boolean |
replace(T key,
boolean value)
A Type Specific replace method to reduce boxing/unboxing replace an existing value
|
boolean |
replace(T key,
boolean oldValue,
boolean newValue)
A Type Specific replace method to replace an existing value
|
void |
replaceBooleans(Object2BooleanMap<T> m)
Type-Specific bulk replace method.
|
void |
replaceBooleans(ObjectBooleanUnaryOperator<T> mappingFunction)
A Type Specific mass replace method to reduce boxing/unboxing
|
AbstractObject2BooleanMap<T> |
setDefaultReturnValue(boolean v)
Method to define the default return value if a requested key isn't present
|
int |
size() |
BooleanCollection |
values() |
containsKey, entrySet, equals, get, getOrDefault, hashCodeclear, containsValue, isEmpty, put, remove, toStringcompute, computeIfAbsent, computeIfPresent, containsValue, entrySet, forEach, get, getOrDefault, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAllpublic boolean getDefaultReturnValue()
Object2BooleanMapgetDefaultReturnValue in interface Object2BooleanMap<T>getDefaultReturnValue in class AbstractObject2BooleanMap<T>public AbstractObject2BooleanMap<T> setDefaultReturnValue(boolean v)
Object2BooleanMapsetDefaultReturnValue in interface Object2BooleanMap<T>setDefaultReturnValue in class AbstractObject2BooleanMap<T>v - value that should be the default return valuepublic 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 void putAllIfAbsent(Object2BooleanMap<T> m)
Object2BooleanMapputAllIfAbsent in interface Object2BooleanMap<T>putAllIfAbsent in class AbstractObject2BooleanMap<T>m - elements that should be added if not present.public void putAll(Object2BooleanMap<T> m)
Object2BooleanMapputAll in interface Object2BooleanMap<T>putAll in class AbstractObject2BooleanMap<T>m - the elements that should be insertedpublic void putAll(java.util.Map<? extends T,? extends java.lang.Boolean> m)
putAll in interface java.util.Map<T,java.lang.Boolean>putAll in class AbstractObject2BooleanMap<T>public void putAll(T[] keys, boolean[] values, int offset, int size)
Object2BooleanMapputAll in interface Object2BooleanMap<T>putAll in class AbstractObject2BooleanMap<T>keys - the keys that should be addedvalues - the values that should be addedoffset - where the to start in the arraysize - how many elements should be addedMap.putAll(Map)public boolean containsValue(boolean value)
Object2BooleanMapcontainsValue in interface Object2BooleanMap<T>containsValue in class AbstractObject2BooleanMap<T>value - element that is searched forpublic boolean getBoolean(T key)
Object2BooleanMapgetBoolean in interface Object2BooleanFunction<T>getBoolean in interface Object2BooleanMap<T>key - the key that is searched forpublic 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 replace(T key, boolean oldValue, boolean newValue)
Object2BooleanMapreplace in interface Object2BooleanMap<T>replace in class AbstractObject2BooleanMap<T>key - the element that should be searched foroldValue - the expected value to be replacednewValue - the value to replace the oldValue with.public boolean replace(T key, boolean value)
Object2BooleanMapreplace in interface Object2BooleanMap<T>replace in class AbstractObject2BooleanMap<T>key - the element that should be searched forvalue - the value to replace with.public void replaceBooleans(Object2BooleanMap<T> m)
Object2BooleanMapreplaceBooleans in interface Object2BooleanMap<T>replaceBooleans in class AbstractObject2BooleanMap<T>m - elements that should be replaced.public void replaceBooleans(ObjectBooleanUnaryOperator<T> mappingFunction)
Object2BooleanMapreplaceBooleans in interface Object2BooleanMap<T>replaceBooleans in class AbstractObject2BooleanMap<T>mappingFunction - operation to replace all valuespublic boolean computeBoolean(T key, ObjectBooleanUnaryOperator<T> mappingFunction)
Object2BooleanMapcomputeBoolean in interface Object2BooleanMap<T>computeBoolean in class AbstractObject2BooleanMap<T>key - the key that should be computedmappingFunction - the operator that should generate the valuepublic boolean computeBooleanIfAbsent(T key, Object2BooleanFunction<T> mappingFunction)
Object2BooleanMapcomputeBooleanIfAbsent in interface Object2BooleanMap<T>computeBooleanIfAbsent in class AbstractObject2BooleanMap<T>key - the key that should be computedmappingFunction - the operator that should generate the value if not presentpublic boolean computeBooleanIfPresent(T key, ObjectBooleanUnaryOperator<T> mappingFunction)
Object2BooleanMapcomputeBooleanIfPresent in interface Object2BooleanMap<T>computeBooleanIfPresent in class AbstractObject2BooleanMap<T>key - the key that should be computedmappingFunction - the operator that should generate the value if presentpublic boolean mergeBoolean(T key, boolean value, BooleanBooleanUnaryOperator mappingFunction)
Object2BooleanMapmergeBoolean in interface Object2BooleanMap<T>mergeBoolean in class AbstractObject2BooleanMap<T>key - the key that should be be searched forvalue - the value that should be merged withmappingFunction - the operator that should generate the new Valuepublic void mergeAllBoolean(Object2BooleanMap<T> m, BooleanBooleanUnaryOperator mappingFunction)
Object2BooleanMapmergeAllBoolean in interface Object2BooleanMap<T>mergeAllBoolean in class AbstractObject2BooleanMap<T>m - the entries that should be bulk addedmappingFunction - the operator that should generate the new Valuepublic 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 void forEach(ObjectBooleanConsumer<T> action)
Object2BooleanMapforEach in interface Object2BooleanMap<T>forEach in class AbstractObject2BooleanMap<T>action - processor of the values that are iterator overpublic int size()
public 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>