public abstract class AbstractBoolean2DoubleMap extends java.util.AbstractMap<java.lang.Boolean,java.lang.Double> implements Boolean2DoubleMap
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractBoolean2DoubleMap.BasicEntry
A Simple Type Specific Entry class to reduce boxing/unboxing
|
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Boolean2DoubleMap.Entry, Boolean2DoubleMap.FastEntrySet| Constructor and Description |
|---|
AbstractBoolean2DoubleMap() |
| Modifier and Type | Method and Description |
|---|---|
void |
addToAll(Boolean2DoubleMap m)
A Helper method to bulk add primitives together.
|
double |
computeDouble(boolean key,
BooleanDoubleUnaryOperator mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
double |
computeDoubleIfAbsent(boolean key,
Boolean2DoubleFunction mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
double |
computeDoubleIfPresent(boolean key,
BooleanDoubleUnaryOperator mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
boolean |
containsKey(boolean key)
Type Specific method to reduce boxing/unboxing of values
|
boolean |
containsValue(double value)
Type Specific method to reduce boxing/unboxing of values
|
Boolean2DoubleMap |
copy()
A Function that does a shallow clone of the Map itself.
|
ObjectSet<java.util.Map.Entry<java.lang.Boolean,java.lang.Double>> |
entrySet() |
boolean |
equals(java.lang.Object o) |
void |
forEach(BooleanDoubleConsumer action)
Type Specific forEach method to reduce boxing/unboxing
|
java.lang.Double |
get(java.lang.Object key) |
double |
getDefaultReturnValue()
Method to see what the default return value is.
|
double |
getOrDefault(boolean key,
double defaultValue)
A Type Specific getOrDefault method to reduce boxing/unboxing
|
java.lang.Double |
getOrDefault(java.lang.Object key,
java.lang.Double defaultValue) |
int |
hashCode() |
BooleanSet |
keySet() |
void |
mergeAllDouble(Boolean2DoubleMap m,
DoubleDoubleUnaryOperator mappingFunction)
A Bulk method for merging Maps.
|
double |
mergeDouble(boolean key,
double value,
DoubleDoubleUnaryOperator mappingFunction)
A Type Specific merge method to reduce boxing/unboxing
|
java.lang.Double |
put(java.lang.Boolean key,
java.lang.Double value)
Deprecated.
|
void |
putAll(boolean[] keys,
double[] values,
int offset,
int size)
Type Specific array method to bulk add elements into a map without creating a wrapper and increasing performances
|
void |
putAll(java.lang.Boolean[] keys,
java.lang.Double[] values,
int offset,
int size)
Type Specific Object array method to bulk add elements into a map without creating a wrapper and increasing performances
|
void |
putAll(Boolean2DoubleMap m)
Type Specific function for the bull putting of values
|
void |
putAll(java.util.Map<? extends java.lang.Boolean,? extends java.lang.Double> m) |
void |
putAllIfAbsent(Boolean2DoubleMap m)
Type-Specific bulk put method put elements into the map if not present.
|
java.lang.Double |
remove(java.lang.Object key) |
double |
replace(boolean key,
double value)
A Type Specific replace method to reduce boxing/unboxing replace an existing value
|
boolean |
replace(boolean key,
double oldValue,
double newValue)
A Type Specific replace method to replace an existing value
|
void |
replaceDoubles(Boolean2DoubleMap m)
Type-Specific bulk replace method.
|
void |
replaceDoubles(BooleanDoubleUnaryOperator mappingFunction)
A Type Specific mass replace method to reduce boxing/unboxing
|
AbstractBoolean2DoubleMap |
setDefaultReturnValue(double v)
Method to define the default return value if a requested key isn't present
|
double |
supplyDoubleIfAbsent(boolean key,
DoubleSupplier valueProvider)
A Supplier based computeIfAbsent function to fill the most used usecase of this function
|
DoubleCollection |
values() |
clear, containsKey, containsValue, isEmpty, size, toStringaddTo, boolean2DoubleEntrySet, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, forEach, get, merge, put, putAll, putAll, putIfAbsent, putIfAbsent, remove, remove, remove, removeOrDefault, replace, replace, replaceAll, subFrompublic double getDefaultReturnValue()
Boolean2DoubleMapgetDefaultReturnValue in interface Boolean2DoubleMappublic AbstractBoolean2DoubleMap setDefaultReturnValue(double v)
Boolean2DoubleMapsetDefaultReturnValue in interface Boolean2DoubleMapv - value that should be the default return valuepublic Boolean2DoubleMap copy()
Boolean2DoubleMapcopy in interface Boolean2DoubleMap@Deprecated
public java.lang.Double put(java.lang.Boolean key,
java.lang.Double value)
put in interface java.util.Map<java.lang.Boolean,java.lang.Double>put in interface Boolean2DoubleMapput in class java.util.AbstractMap<java.lang.Boolean,java.lang.Double>public void addToAll(Boolean2DoubleMap m)
Boolean2DoubleMapaddToAll in interface Boolean2DoubleMapm - the values that should be added/insertedpublic void putAll(Boolean2DoubleMap m)
Boolean2DoubleMapputAll in interface Boolean2DoubleMapm - the elements that should be insertedpublic void putAll(java.util.Map<? extends java.lang.Boolean,? extends java.lang.Double> m)
putAll in interface java.util.Map<java.lang.Boolean,java.lang.Double>putAll in class java.util.AbstractMap<java.lang.Boolean,java.lang.Double>public void putAll(boolean[] keys,
double[] values,
int offset,
int size)
Boolean2DoubleMapputAll in interface Boolean2DoubleMapkeys - 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 void putAll(java.lang.Boolean[] keys,
java.lang.Double[] values,
int offset,
int size)
Boolean2DoubleMapputAll in interface Boolean2DoubleMapkeys - 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 void putAllIfAbsent(Boolean2DoubleMap m)
Boolean2DoubleMapputAllIfAbsent in interface Boolean2DoubleMapm - elements that should be added if not present.public boolean containsKey(boolean key)
Boolean2DoubleMapcontainsKey in interface Boolean2DoubleMapkey - element that is searched forpublic boolean containsValue(double value)
Boolean2DoubleMapcontainsValue in interface Boolean2DoubleMapvalue - element that is searched forpublic boolean replace(boolean key,
double oldValue,
double newValue)
Boolean2DoubleMapreplace in interface Boolean2DoubleMapkey - the element that should be searched foroldValue - the expected value to be replacednewValue - the value to replace the oldValue with.public double replace(boolean key,
double value)
Boolean2DoubleMapreplace in interface Boolean2DoubleMapkey - the element that should be searched forvalue - the value to replace with.public void replaceDoubles(Boolean2DoubleMap m)
Boolean2DoubleMapreplaceDoubles in interface Boolean2DoubleMapm - elements that should be replaced.public void replaceDoubles(BooleanDoubleUnaryOperator mappingFunction)
Boolean2DoubleMapreplaceDoubles in interface Boolean2DoubleMapmappingFunction - operation to replace all valuespublic double computeDouble(boolean key,
BooleanDoubleUnaryOperator mappingFunction)
Boolean2DoubleMapcomputeDouble in interface Boolean2DoubleMapkey - the key that should be computedmappingFunction - the operator that should generate the valuepublic double computeDoubleIfAbsent(boolean key,
Boolean2DoubleFunction mappingFunction)
Boolean2DoubleMapcomputeDoubleIfAbsent in interface Boolean2DoubleMapkey - the key that should be computedmappingFunction - the operator that should generate the value if not presentpublic double supplyDoubleIfAbsent(boolean key,
DoubleSupplier valueProvider)
Boolean2DoubleMapsupplyDoubleIfAbsent in interface Boolean2DoubleMapkey - the key that should be computedvalueProvider - the value if not presentpublic double computeDoubleIfPresent(boolean key,
BooleanDoubleUnaryOperator mappingFunction)
Boolean2DoubleMapcomputeDoubleIfPresent in interface Boolean2DoubleMapkey - the key that should be computedmappingFunction - the operator that should generate the value if presentpublic double mergeDouble(boolean key,
double value,
DoubleDoubleUnaryOperator mappingFunction)
Boolean2DoubleMapmergeDouble in interface Boolean2DoubleMapkey - the key that should be be searched forvalue - the value that should be merged withmappingFunction - the operator that should generate the new Valuepublic void mergeAllDouble(Boolean2DoubleMap m, DoubleDoubleUnaryOperator mappingFunction)
Boolean2DoubleMapmergeAllDouble in interface Boolean2DoubleMapm - the entries that should be bulk addedmappingFunction - the operator that should generate the new Valuepublic java.lang.Double get(java.lang.Object key)
get in interface java.util.Map<java.lang.Boolean,java.lang.Double>get in interface Boolean2DoubleMapget in class java.util.AbstractMap<java.lang.Boolean,java.lang.Double>public java.lang.Double getOrDefault(java.lang.Object key,
java.lang.Double defaultValue)
getOrDefault in interface java.util.Map<java.lang.Boolean,java.lang.Double>getOrDefault in interface Boolean2DoubleMappublic double getOrDefault(boolean key,
double defaultValue)
Boolean2DoubleMapgetOrDefault in interface Boolean2DoubleMapkey - the key that is searched fordefaultValue - the value that should be returned if the key is not presentpublic java.lang.Double remove(java.lang.Object key)
remove in interface java.util.Map<java.lang.Boolean,java.lang.Double>remove in interface Boolean2DoubleMapremove in class java.util.AbstractMap<java.lang.Boolean,java.lang.Double>key - the element that should be removedMap.remove(Object)public void forEach(BooleanDoubleConsumer action)
Boolean2DoubleMapforEach in interface Boolean2DoubleMapaction - processor of the values that are iterator overpublic BooleanSet keySet()
keySet in interface java.util.Map<java.lang.Boolean,java.lang.Double>keySet in interface Boolean2DoubleMapkeySet in class java.util.AbstractMap<java.lang.Boolean,java.lang.Double>public DoubleCollection values()
values in interface java.util.Map<java.lang.Boolean,java.lang.Double>values in interface Boolean2DoubleMapvalues in class java.util.AbstractMap<java.lang.Boolean,java.lang.Double>public ObjectSet<java.util.Map.Entry<java.lang.Boolean,java.lang.Double>> entrySet()
entrySet in interface java.util.Map<java.lang.Boolean,java.lang.Double>entrySet in interface Boolean2DoubleMapentrySet in class java.util.AbstractMap<java.lang.Boolean,java.lang.Double>public boolean equals(java.lang.Object o)
equals in interface java.util.Map<java.lang.Boolean,java.lang.Double>equals in class java.util.AbstractMap<java.lang.Boolean,java.lang.Double>public int hashCode()
hashCode in interface java.util.Map<java.lang.Boolean,java.lang.Double>hashCode in class java.util.AbstractMap<java.lang.Boolean,java.lang.Double>