public abstract class AbstractDouble2FloatMap extends java.util.AbstractMap<java.lang.Double,java.lang.Float> implements Double2FloatMap
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractDouble2FloatMap.BasicEntry
A Simple Type Specific Entry class to reduce boxing/unboxing
|
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Double2FloatMap.Entry, Double2FloatMap.FastEntrySet| Constructor and Description |
|---|
AbstractDouble2FloatMap() |
| Modifier and Type | Method and Description |
|---|---|
void |
addToAll(Double2FloatMap m)
A Helper method to bulk add primitives together.
|
float |
computeFloat(double key,
DoubleFloatUnaryOperator mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
float |
computeFloatIfAbsent(double key,
Double2FloatFunction mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
float |
computeFloatIfPresent(double key,
DoubleFloatUnaryOperator 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(float value)
Type Specific method to reduce boxing/unboxing of values
|
ObjectSet<java.util.Map.Entry<java.lang.Double,java.lang.Float>> |
entrySet() |
boolean |
equals(java.lang.Object o) |
void |
forEach(DoubleFloatConsumer action)
Type Specific forEach method to reduce boxing/unboxing
|
java.lang.Float |
get(java.lang.Object key) |
float |
getDefaultReturnValue()
Method to see what the default return value is.
|
float |
getOrDefault(double key,
float defaultValue)
A Type Specific getOrDefault method to reduce boxing/unboxing
|
java.lang.Float |
getOrDefault(java.lang.Object key,
java.lang.Float defaultValue) |
int |
hashCode() |
DoubleSet |
keySet() |
void |
mergeAllFloat(Double2FloatMap m,
FloatFloatUnaryOperator mappingFunction)
A Bulk method for merging Maps.
|
float |
mergeFloat(double key,
float value,
FloatFloatUnaryOperator mappingFunction)
A Type Specific merge method to reduce boxing/unboxing
|
void |
putAll(double[] keys,
float[] 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(Double2FloatMap m)
Type Specific function for the bull putting of values
|
void |
putAll(java.util.Map<? extends java.lang.Double,? extends java.lang.Float> m) |
void |
putAllIfAbsent(Double2FloatMap m)
Type-Specific bulk put method put elements into the map if not present.
|
float |
replace(double key,
float value)
A Type Specific replace method to reduce boxing/unboxing replace an existing value
|
boolean |
replace(double key,
float oldValue,
float newValue)
A Type Specific replace method to replace an existing value
|
void |
replaceFloats(Double2FloatMap m)
Type-Specific bulk replace method.
|
void |
replaceFloats(DoubleFloatUnaryOperator mappingFunction)
A Type Specific mass replace method to reduce boxing/unboxing
|
AbstractDouble2FloatMap |
setDefaultReturnValue(float v)
Method to define the default return value if a requested key isn't present
|
FloatCollection |
values() |
clear, containsKey, containsValue, isEmpty, put, remove, size, toStringaddTo, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, double2FloatEntrySet, forEach, getFloat, merge, put, put, putAll, putIfAbsent, putIfAbsent, remDouble, remDoubleOrDefault, remove, remove, remove, replace, replace, replaceAllpublic float getDefaultReturnValue()
Double2FloatMapgetDefaultReturnValue in interface Double2FloatMappublic AbstractDouble2FloatMap setDefaultReturnValue(float v)
Double2FloatMapsetDefaultReturnValue in interface Double2FloatMapv - value that should be the default return valuepublic void addToAll(Double2FloatMap m)
Double2FloatMapaddToAll in interface Double2FloatMapm - the values that should be added/insertedpublic void putAll(Double2FloatMap m)
Double2FloatMapputAll in interface Double2FloatMapm - the elements that should be insertedpublic void putAll(java.util.Map<? extends java.lang.Double,? extends java.lang.Float> m)
putAll in interface java.util.Map<java.lang.Double,java.lang.Float>putAll in class java.util.AbstractMap<java.lang.Double,java.lang.Float>public void putAll(double[] keys,
float[] values,
int offset,
int size)
Double2FloatMapputAll in interface Double2FloatMapkeys - 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(Double2FloatMap m)
Double2FloatMapputAllIfAbsent in interface Double2FloatMapm - elements that should be added if not present.public boolean containsKey(double key)
Double2FloatMapcontainsKey in interface Double2FloatMapkey - element that is searched forpublic boolean containsValue(float value)
Double2FloatMapcontainsValue in interface Double2FloatMapvalue - element that is searched forpublic boolean replace(double key,
float oldValue,
float newValue)
Double2FloatMapreplace in interface Double2FloatMapkey - the element that should be searched foroldValue - the expected value to be replacednewValue - the value to replace the oldValue with.public float replace(double key,
float value)
Double2FloatMapreplace in interface Double2FloatMapkey - the element that should be searched forvalue - the value to replace with.public void replaceFloats(Double2FloatMap m)
Double2FloatMapreplaceFloats in interface Double2FloatMapm - elements that should be replaced.public void replaceFloats(DoubleFloatUnaryOperator mappingFunction)
Double2FloatMapreplaceFloats in interface Double2FloatMapmappingFunction - operation to replace all valuespublic float computeFloat(double key,
DoubleFloatUnaryOperator mappingFunction)
Double2FloatMapcomputeFloat in interface Double2FloatMapkey - the key that should be computedmappingFunction - the operator that should generate the valuepublic float computeFloatIfAbsent(double key,
Double2FloatFunction mappingFunction)
Double2FloatMapcomputeFloatIfAbsent in interface Double2FloatMapkey - the key that should be computedmappingFunction - the operator that should generate the value if not presentpublic float computeFloatIfPresent(double key,
DoubleFloatUnaryOperator mappingFunction)
Double2FloatMapcomputeFloatIfPresent in interface Double2FloatMapkey - the key that should be computedmappingFunction - the operator that should generate the value if presentpublic float mergeFloat(double key,
float value,
FloatFloatUnaryOperator mappingFunction)
Double2FloatMapmergeFloat in interface Double2FloatMapkey - the key that should be be searched forvalue - the value that should be merged withmappingFunction - the operator that should generate the new Valuepublic void mergeAllFloat(Double2FloatMap m, FloatFloatUnaryOperator mappingFunction)
Double2FloatMapmergeAllFloat in interface Double2FloatMapm - the entries that should be bulk addedmappingFunction - the operator that should generate the new Valuepublic java.lang.Float get(java.lang.Object key)
get in interface java.util.Map<java.lang.Double,java.lang.Float>get in interface Double2FloatMapget in class java.util.AbstractMap<java.lang.Double,java.lang.Float>public java.lang.Float getOrDefault(java.lang.Object key,
java.lang.Float defaultValue)
getOrDefault in interface java.util.Map<java.lang.Double,java.lang.Float>getOrDefault in interface Double2FloatMappublic float getOrDefault(double key,
float defaultValue)
Double2FloatMapgetOrDefault in interface Double2FloatMapkey - the key that is searched fordefaultValue - the value that should be returned if the key is not presentpublic void forEach(DoubleFloatConsumer action)
Double2FloatMapforEach in interface Double2FloatMapaction - processor of the values that are iterator overpublic DoubleSet keySet()
keySet in interface java.util.Map<java.lang.Double,java.lang.Float>keySet in interface Double2FloatMapkeySet in class java.util.AbstractMap<java.lang.Double,java.lang.Float>public FloatCollection values()
values in interface java.util.Map<java.lang.Double,java.lang.Float>values in interface Double2FloatMapvalues in class java.util.AbstractMap<java.lang.Double,java.lang.Float>public ObjectSet<java.util.Map.Entry<java.lang.Double,java.lang.Float>> entrySet()
entrySet in interface java.util.Map<java.lang.Double,java.lang.Float>entrySet in interface Double2FloatMapentrySet in class java.util.AbstractMap<java.lang.Double,java.lang.Float>public boolean equals(java.lang.Object o)
equals in interface java.util.Map<java.lang.Double,java.lang.Float>equals in class java.util.AbstractMap<java.lang.Double,java.lang.Float>public int hashCode()
hashCode in interface java.util.Map<java.lang.Double,java.lang.Float>hashCode in class java.util.AbstractMap<java.lang.Double,java.lang.Float>