public static class Int2BooleanMaps.EmptyMap extends AbstractInt2BooleanMap
AbstractInt2BooleanMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Int2BooleanMap.BuilderCache, Int2BooleanMap.Entry, Int2BooleanMap.FastEntrySet, Int2BooleanMap.MapBuilder| Constructor and Description |
|---|
EmptyMap() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
computeBoolean(int key,
IntBooleanUnaryOperator mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
boolean |
computeBooleanIfAbsent(int key,
java.util.function.IntPredicate 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
|
Int2BooleanMaps.EmptyMap |
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.
|
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, replaceBooleans, replaceBooleans, setDefaultReturnValueclear, containsKey, containsValue, isEmpty, size, toStringbuilder, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, forEach, merge, put, put, putAll, putAll, putIfAbsent, remove, replace, replace, replaceAll, synchronize, synchronize, test, unmodifiablepublic boolean put(int key,
boolean value)
Int2BooleanMapkey - the key that should be inserted,value - the value that should be insertedMap.put(Object, Object)public boolean putIfAbsent(int key,
boolean value)
Int2BooleanMapkey - the key that should be inserted,value - the value that should be insertedMap.putIfAbsent(Object, Object)public boolean remove(int key)
Int2BooleanMapkey - the element that should be removedpublic boolean removeOrDefault(int key,
boolean defaultValue)
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)
Int2BooleanMapkey - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)public boolean get(int key)
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,
java.util.function.IntPredicate 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 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()
Int2BooleanMappublic Int2BooleanMaps.EmptyMap copy()
Int2BooleanMapcopy in interface Int2BooleanMapcopy in class AbstractInt2BooleanMap