public static class Double2BooleanMaps.SingletonMap extends AbstractDouble2BooleanMap
AbstractDouble2BooleanMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Double2BooleanMap.BuilderCache, Double2BooleanMap.Entry, Double2BooleanMap.FastEntrySet, Double2BooleanMap.MapBuilder| Modifier and Type | Method and Description |
|---|---|
boolean |
computeBoolean(double key,
DoubleBooleanUnaryOperator mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
boolean |
computeBooleanIfAbsent(double key,
Double2BooleanFunction mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
boolean |
computeBooleanIfPresent(double key,
DoubleBooleanUnaryOperator mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
Double2BooleanMaps.SingletonMap |
copy()
A Function that does a shallow clone of the Map itself.
|
ObjectSet<Double2BooleanMap.Entry> |
double2BooleanEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
boolean |
get(double key)
A Type Specific get method to reduce boxing/unboxing
|
boolean |
getOrDefault(double key,
boolean defaultValue)
A Type Specific getOrDefault method to reduce boxing/unboxing
|
DoubleSet |
keySet() |
void |
mergeAllBoolean(Double2BooleanMap m,
BooleanBooleanUnaryOperator mappingFunction)
A Bulk method for merging Maps.
|
boolean |
mergeBoolean(double key,
boolean value,
BooleanBooleanUnaryOperator mappingFunction)
A Type Specific merge method to reduce boxing/unboxing
|
boolean |
put(double key,
boolean value)
Type Specific method to reduce boxing/unboxing of values
|
boolean |
putIfAbsent(double key,
boolean value)
Type Specific method to reduce boxing/unboxing of values
|
boolean |
remove(double key)
Type Specific remove function to reduce boxing/unboxing
|
boolean |
remove(double key,
boolean value)
Type Specific remove function to reduce boxing/unboxing
|
boolean |
removeOrDefault(double key,
boolean defaultValue)
Type-Specific Remove function with a default return value if wanted.
|
boolean |
supplyBooleanIfAbsent(double 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, putAll, putAll, putIfAbsent, remove, replace, replace, replaceAll, synchronize, synchronize, unmodifiablepublic boolean put(double key,
boolean value)
Double2BooleanMapkey - the key that should be inserted,value - the value that should be insertedMap.put(Object, Object)public boolean putIfAbsent(double key,
boolean value)
Double2BooleanMapkey - the key that should be inserted,value - the value that should be insertedMap.putIfAbsent(Object, Object)public boolean remove(double key)
Double2BooleanMapkey - the element that should be removedpublic boolean removeOrDefault(double key,
boolean defaultValue)
Double2BooleanMapkey - the element that should be removeddefaultValue - the value that should be returned if the entry doesn't existMap.remove(Object, Object)public boolean remove(double key,
boolean value)
Double2BooleanMapkey - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)public boolean get(double key)
Double2BooleanMapkey - the key that is searched forpublic boolean getOrDefault(double key,
boolean defaultValue)
Double2BooleanMapgetOrDefault in interface Double2BooleanMapgetOrDefault in class AbstractDouble2BooleanMapkey - the key that is searched fordefaultValue - the value that should be returned if the key is not presentpublic boolean computeBoolean(double key,
DoubleBooleanUnaryOperator mappingFunction)
Double2BooleanMapcomputeBoolean in interface Double2BooleanMapcomputeBoolean in class AbstractDouble2BooleanMapkey - the key that should be computedmappingFunction - the operator that should generate the valuepublic boolean computeBooleanIfAbsent(double key,
Double2BooleanFunction mappingFunction)
Double2BooleanMapcomputeBooleanIfAbsent in interface Double2BooleanMapcomputeBooleanIfAbsent in class AbstractDouble2BooleanMapkey - the key that should be computedmappingFunction - the operator that should generate the value if not presentpublic boolean computeBooleanIfPresent(double key,
DoubleBooleanUnaryOperator mappingFunction)
Double2BooleanMapcomputeBooleanIfPresent in interface Double2BooleanMapcomputeBooleanIfPresent in class AbstractDouble2BooleanMapkey - the key that should be computedmappingFunction - the operator that should generate the value if presentpublic boolean supplyBooleanIfAbsent(double key,
BooleanSupplier valueProvider)
Double2BooleanMapsupplyBooleanIfAbsent in interface Double2BooleanMapsupplyBooleanIfAbsent in class AbstractDouble2BooleanMapkey - the key that should be computedvalueProvider - the value if not presentpublic boolean mergeBoolean(double key,
boolean value,
BooleanBooleanUnaryOperator mappingFunction)
Double2BooleanMapmergeBoolean in interface Double2BooleanMapmergeBoolean in class AbstractDouble2BooleanMapkey - 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(Double2BooleanMap m, BooleanBooleanUnaryOperator mappingFunction)
Double2BooleanMapmergeAllBoolean in interface Double2BooleanMapmergeAllBoolean in class AbstractDouble2BooleanMapm - the entries that should be bulk addedmappingFunction - the operator that should generate the new Valuepublic Double2BooleanMaps.SingletonMap copy()
Double2BooleanMapcopy in interface Double2BooleanMapcopy in class AbstractDouble2BooleanMappublic DoubleSet keySet()
keySet in interface java.util.Map<java.lang.Double,java.lang.Boolean>keySet in interface Double2BooleanMapkeySet in class AbstractDouble2BooleanMappublic BooleanCollection values()
values in interface java.util.Map<java.lang.Double,java.lang.Boolean>values in interface Double2BooleanMapvalues in class AbstractDouble2BooleanMappublic ObjectSet<Double2BooleanMap.Entry> double2BooleanEntrySet()
Double2BooleanMap