public abstract class AbstractDouble2DoubleMap extends java.util.AbstractMap<java.lang.Double,java.lang.Double> implements Double2DoubleMap
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractDouble2DoubleMap.BasicEntry
A Simple Type Specific Entry class to reduce boxing/unboxing
|
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Double2DoubleMap.Entry, Double2DoubleMap.FastEntrySet| Constructor and Description |
|---|
AbstractDouble2DoubleMap() |
| Modifier and Type | Method and Description |
|---|---|
void |
addToAll(Double2DoubleMap m)
A Helper method to bulk add primitives together.
|
double |
computeDouble(double key,
DoubleDoubleUnaryOperator mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
double |
computeDoubleIfAbsent(double key,
Double2DoubleFunction mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
double |
computeDoubleIfPresent(double key,
DoubleDoubleUnaryOperator mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
boolean |
containsKey(double key)
Type Specific method to reduce boxing/unboxing of values
|
boolean |
containsValue(double value)
Type Specific method to reduce boxing/unboxing of values
|
ObjectSet<java.util.Map.Entry<java.lang.Double,java.lang.Double>> |
entrySet() |
boolean |
equals(java.lang.Object o) |
void |
forEach(DoubleDoubleConsumer 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(double 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() |
DoubleSet |
keySet() |
void |
mergeAllDouble(Double2DoubleMap m,
DoubleDoubleUnaryOperator mappingFunction)
A Bulk method for merging Maps.
|
double |
mergeDouble(double key,
double value,
DoubleDoubleUnaryOperator mappingFunction)
A Type Specific merge method to reduce boxing/unboxing
|
void |
putAll(double[] 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(Double2DoubleMap m)
Type Specific function for the bull putting of values
|
void |
putAll(java.util.Map<? extends java.lang.Double,? extends java.lang.Double> m) |
void |
putAllIfAbsent(Double2DoubleMap m)
Type-Specific bulk put method put elements into the map if not present.
|
double |
replace(double key,
double value)
A Type Specific replace method to reduce boxing/unboxing replace an existing value
|
boolean |
replace(double key,
double oldValue,
double newValue)
A Type Specific replace method to replace an existing value
|
void |
replaceDoubles(Double2DoubleMap m)
Type-Specific bulk replace method.
|
void |
replaceDoubles(DoubleDoubleUnaryOperator mappingFunction)
A Type Specific mass replace method to reduce boxing/unboxing
|
AbstractDouble2DoubleMap |
setDefaultReturnValue(double v)
Method to define the default return value if a requested key isn't present
|
DoubleCollection |
values() |
clear, containsKey, containsValue, isEmpty, put, remove, size, toStringaddTo, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, double2DoubleEntrySet, forEach, getDouble, merge, put, put, putAll, putIfAbsent, putIfAbsent, remDouble, remDoubleOrDefault, remove, remove, remove, replace, replace, replaceAllapplyAsDoublepublic double getDefaultReturnValue()
Double2DoubleMapgetDefaultReturnValue in interface Double2DoubleMappublic AbstractDouble2DoubleMap setDefaultReturnValue(double v)
Double2DoubleMapsetDefaultReturnValue in interface Double2DoubleMapv - value that should be the default return valuepublic void addToAll(Double2DoubleMap m)
Double2DoubleMapaddToAll in interface Double2DoubleMapm - the values that should be added/insertedpublic void putAll(Double2DoubleMap m)
Double2DoubleMapputAll in interface Double2DoubleMapm - the elements that should be insertedpublic void putAll(java.util.Map<? extends java.lang.Double,? extends java.lang.Double> m)
putAll in interface java.util.Map<java.lang.Double,java.lang.Double>putAll in class java.util.AbstractMap<java.lang.Double,java.lang.Double>public void putAll(double[] keys,
double[] values,
int offset,
int size)
Double2DoubleMapputAll in interface Double2DoubleMapkeys - 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(Double2DoubleMap m)
Double2DoubleMapputAllIfAbsent in interface Double2DoubleMapm - elements that should be added if not present.public boolean containsKey(double key)
Double2DoubleMapcontainsKey in interface Double2DoubleMapkey - element that is searched forpublic boolean containsValue(double value)
Double2DoubleMapcontainsValue in interface Double2DoubleMapvalue - element that is searched forpublic boolean replace(double key,
double oldValue,
double newValue)
Double2DoubleMapreplace in interface Double2DoubleMapkey - the element that should be searched foroldValue - the expected value to be replacednewValue - the value to replace the oldValue with.public double replace(double key,
double value)
Double2DoubleMapreplace in interface Double2DoubleMapkey - the element that should be searched forvalue - the value to replace with.public void replaceDoubles(Double2DoubleMap m)
Double2DoubleMapreplaceDoubles in interface Double2DoubleMapm - elements that should be replaced.public void replaceDoubles(DoubleDoubleUnaryOperator mappingFunction)
Double2DoubleMapreplaceDoubles in interface Double2DoubleMapmappingFunction - operation to replace all valuespublic double computeDouble(double key,
DoubleDoubleUnaryOperator mappingFunction)
Double2DoubleMapcomputeDouble in interface Double2DoubleMapkey - the key that should be computedmappingFunction - the operator that should generate the valuepublic double computeDoubleIfAbsent(double key,
Double2DoubleFunction mappingFunction)
Double2DoubleMapcomputeDoubleIfAbsent in interface Double2DoubleMapkey - the key that should be computedmappingFunction - the operator that should generate the value if not presentpublic double computeDoubleIfPresent(double key,
DoubleDoubleUnaryOperator mappingFunction)
Double2DoubleMapcomputeDoubleIfPresent in interface Double2DoubleMapkey - the key that should be computedmappingFunction - the operator that should generate the value if presentpublic double mergeDouble(double key,
double value,
DoubleDoubleUnaryOperator mappingFunction)
Double2DoubleMapmergeDouble in interface Double2DoubleMapkey - 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(Double2DoubleMap m, DoubleDoubleUnaryOperator mappingFunction)
Double2DoubleMapmergeAllDouble in interface Double2DoubleMapm - 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.Double,java.lang.Double>get in interface Double2DoubleMapget in class java.util.AbstractMap<java.lang.Double,java.lang.Double>public java.lang.Double getOrDefault(java.lang.Object key,
java.lang.Double defaultValue)
getOrDefault in interface java.util.Map<java.lang.Double,java.lang.Double>getOrDefault in interface Double2DoubleMappublic double getOrDefault(double key,
double defaultValue)
Double2DoubleMapgetOrDefault in interface Double2DoubleMapkey - the key that is searched fordefaultValue - the value that should be returned if the key is not presentpublic void forEach(DoubleDoubleConsumer action)
Double2DoubleMapforEach in interface Double2DoubleMapaction - processor of the values that are iterator overpublic DoubleSet keySet()
keySet in interface java.util.Map<java.lang.Double,java.lang.Double>keySet in interface Double2DoubleMapkeySet in class java.util.AbstractMap<java.lang.Double,java.lang.Double>public DoubleCollection values()
values in interface java.util.Map<java.lang.Double,java.lang.Double>values in interface Double2DoubleMapvalues in class java.util.AbstractMap<java.lang.Double,java.lang.Double>public ObjectSet<java.util.Map.Entry<java.lang.Double,java.lang.Double>> entrySet()
entrySet in interface java.util.Map<java.lang.Double,java.lang.Double>entrySet in interface Double2DoubleMapentrySet in class java.util.AbstractMap<java.lang.Double,java.lang.Double>public boolean equals(java.lang.Object o)
equals in interface java.util.Map<java.lang.Double,java.lang.Double>equals in class java.util.AbstractMap<java.lang.Double,java.lang.Double>public int hashCode()
hashCode in interface java.util.Map<java.lang.Double,java.lang.Double>hashCode in class java.util.AbstractMap<java.lang.Double,java.lang.Double>