public static class Int2BooleanMaps.UnmodifyableMap extends AbstractInt2BooleanMap implements Int2BooleanMap
AbstractInt2BooleanMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Int2BooleanMap.BuilderCache, Int2BooleanMap.Entry, Int2BooleanMap.FastEntrySet, Int2BooleanMap.MapBuilder| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
boolean |
computeBoolean(int key,
IntBooleanUnaryOperator mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
boolean |
computeBooleanIfAbsent(int key,
Int2BooleanFunction mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
boolean |
computeBooleanIfPresent(int key,
IntBooleanUnaryOperator mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
Int2BooleanMap |
copy()
A Function that does a shallow clone of the Map itself.
|
boolean |
get(int key)
A Type Specific get method to reduce boxing/unboxing
|
boolean |
getOrDefault(int key,
boolean defaultValue)
A Type Specific getOrDefault method to reduce boxing/unboxing
|
ObjectSet<Int2BooleanMap.Entry> |
int2BooleanEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
IntSet |
keySet() |
void |
mergeAllBoolean(Int2BooleanMap m,
BooleanBooleanUnaryOperator mappingFunction)
A Bulk method for merging Maps.
|
boolean |
mergeBoolean(int key,
boolean value,
BooleanBooleanUnaryOperator mappingFunction)
A Type Specific merge method to reduce boxing/unboxing
|
boolean |
put(int key,
boolean value)
Type Specific method to reduce boxing/unboxing of values
|
boolean |
putIfAbsent(int key,
boolean value)
Type Specific method to reduce boxing/unboxing of values
|
boolean |
remove(int key)
Type Specific remove function to reduce boxing/unboxing
|
boolean |
remove(int key,
boolean value)
Type Specific remove function to reduce boxing/unboxing
|
boolean |
removeOrDefault(int key,
boolean defaultValue)
Type-Specific Remove function with a default return value if wanted.
|
void |
replaceBooleans(Int2BooleanMap m)
Type-Specific bulk replace method.
|
void |
replaceBooleans(IntBooleanUnaryOperator mappingFunction)
A Type Specific mass replace method to reduce boxing/unboxing
|
boolean |
supplyBooleanIfAbsent(int key,
BooleanSupplier valueProvider)
A Supplier based computeIfAbsent function to fill the most used usecase of this function
|
BooleanCollection |
values() |
containsKey, containsValue, entrySet, equals, forEach, get, getDefaultReturnValue, getOrDefault, hashCode, put, putAll, putAll, putAll, putAll, putAllIfAbsent, remove, replace, replace, setDefaultReturnValuecontainsKey, containsValue, isEmpty, size, toStringbuilder, compute, computeIfAbsent, computeIfPresent, containsKey, containsKey, containsValue, containsValue, entrySet, forEach, forEach, get, getDefaultReturnValue, getOrDefault, merge, put, putAll, putAll, putAll, putAll, putAll, putAllIfAbsent, putIfAbsent, remove, remove, replace, replace, replace, replace, replaceAll, setDefaultReturnValue, synchronize, synchronize, unmodifiablepublic boolean put(int key,
boolean value)
Int2BooleanMapput in interface Int2BooleanMapkey - the key that should be inserted,value - the value that should be insertedMap.put(Object, Object)public boolean putIfAbsent(int key,
boolean value)
Int2BooleanMapputIfAbsent in interface Int2BooleanMapkey - the key that should be inserted,value - the value that should be insertedMap.putIfAbsent(Object, Object)public boolean remove(int key)
Int2BooleanMapremove in interface Int2BooleanMapkey - the element that should be removedpublic boolean removeOrDefault(int key,
boolean defaultValue)
Int2BooleanMapremoveOrDefault in interface Int2BooleanMapkey - the element that should be removeddefaultValue - the value that should be returned if the entry doesn't existMap.remove(Object, Object)public boolean remove(int key,
boolean value)
Int2BooleanMapremove in interface Int2BooleanMapkey - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)public boolean get(int key)
Int2BooleanMapget in interface Int2BooleanFunctionget in interface Int2BooleanMapkey - the key that is searched forpublic boolean getOrDefault(int key,
boolean defaultValue)
Int2BooleanMapgetOrDefault in interface Int2BooleanMapgetOrDefault in class AbstractInt2BooleanMapkey - the key that is searched fordefaultValue - the value that should be returned if the key is not presentpublic boolean computeBoolean(int key,
IntBooleanUnaryOperator mappingFunction)
Int2BooleanMapcomputeBoolean in interface Int2BooleanMapcomputeBoolean in class AbstractInt2BooleanMapkey - the key that should be computedmappingFunction - the operator that should generate the valuepublic boolean computeBooleanIfAbsent(int key,
Int2BooleanFunction mappingFunction)
Int2BooleanMapcomputeBooleanIfAbsent in interface Int2BooleanMapcomputeBooleanIfAbsent in class AbstractInt2BooleanMapkey - the key that should be computedmappingFunction - the operator that should generate the value if not presentpublic boolean computeBooleanIfPresent(int key,
IntBooleanUnaryOperator mappingFunction)
Int2BooleanMapcomputeBooleanIfPresent in interface Int2BooleanMapcomputeBooleanIfPresent in class AbstractInt2BooleanMapkey - the key that should be computedmappingFunction - the operator that should generate the value if presentpublic boolean supplyBooleanIfAbsent(int key,
BooleanSupplier valueProvider)
Int2BooleanMapsupplyBooleanIfAbsent in interface Int2BooleanMapsupplyBooleanIfAbsent in class AbstractInt2BooleanMapkey - the key that should be computedvalueProvider - the value if not presentpublic boolean mergeBoolean(int key,
boolean value,
BooleanBooleanUnaryOperator mappingFunction)
Int2BooleanMapmergeBoolean in interface Int2BooleanMapmergeBoolean in class AbstractInt2BooleanMapkey - 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(Int2BooleanMap m, BooleanBooleanUnaryOperator mappingFunction)
Int2BooleanMapmergeAllBoolean in interface Int2BooleanMapmergeAllBoolean in class AbstractInt2BooleanMapm - the entries that should be bulk addedmappingFunction - the operator that should generate the new Valuepublic void replaceBooleans(IntBooleanUnaryOperator mappingFunction)
Int2BooleanMapreplaceBooleans in interface Int2BooleanMapreplaceBooleans in class AbstractInt2BooleanMapmappingFunction - operation to replace all valuespublic void replaceBooleans(Int2BooleanMap m)
Int2BooleanMapreplaceBooleans in interface Int2BooleanMapreplaceBooleans in class AbstractInt2BooleanMapm - elements that should be replaced.public Int2BooleanMap copy()
Int2BooleanMapcopy in interface Int2BooleanMapcopy in class AbstractInt2BooleanMappublic void clear()
clear in interface java.util.Map<java.lang.Integer,java.lang.Boolean>clear in class java.util.AbstractMap<java.lang.Integer,java.lang.Boolean>public IntSet keySet()
keySet in interface java.util.Map<java.lang.Integer,java.lang.Boolean>keySet in interface Int2BooleanMapkeySet in class AbstractInt2BooleanMappublic BooleanCollection values()
values in interface java.util.Map<java.lang.Integer,java.lang.Boolean>values in interface Int2BooleanMapvalues in class AbstractInt2BooleanMappublic ObjectSet<Int2BooleanMap.Entry> int2BooleanEntrySet()
Int2BooleanMapint2BooleanEntrySet in interface Int2BooleanMap