public interface Double2FloatMap extends java.util.Map<java.lang.Double,java.lang.Float>, Double2FloatFunction
| Modifier and Type | Interface and Description |
|---|---|
static interface |
Double2FloatMap.Entry
Type Specific Map Entry that reduces boxing/unboxing
|
static interface |
Double2FloatMap.FastEntrySet
Fast Entry set that allows for a faster Entry Iterator by recycling the Entry Object and just exchanging 1 internal value
|
| Modifier and Type | Method and Description |
|---|---|
float |
addTo(double key,
float value)
A Helper method to add a primitives together.
|
void |
addToAll(Double2FloatMap m)
A Helper method to bulk add primitives together.
|
default java.lang.Float |
compute(java.lang.Double key,
java.util.function.BiFunction<? super java.lang.Double,? super java.lang.Float,? extends java.lang.Float> mappingFunction)
Deprecated.
|
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
|
default java.lang.Float |
computeIfAbsent(java.lang.Double key,
java.util.function.Function<? super java.lang.Double,? extends java.lang.Float> mappingFunction)
Deprecated.
|
default java.lang.Float |
computeIfPresent(java.lang.Double key,
java.util.function.BiFunction<? super java.lang.Double,? super java.lang.Float,? extends java.lang.Float> mappingFunction)
Deprecated.
|
boolean |
containsKey(double key)
Type Specific method to reduce boxing/unboxing of values
|
default boolean |
containsKey(java.lang.Object key) |
boolean |
containsValue(float value)
Type Specific method to reduce boxing/unboxing of values
|
default boolean |
containsValue(java.lang.Object value) |
ObjectSet<Double2FloatMap.Entry> |
double2FloatEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
ObjectSet<java.util.Map.Entry<java.lang.Double,java.lang.Float>> |
entrySet()
Deprecated.
|
default void |
forEach(java.util.function.BiConsumer<? super java.lang.Double,? super java.lang.Float> action)
Deprecated.
|
void |
forEach(DoubleFloatConsumer action)
Type Specific forEach method to reduce boxing/unboxing
|
default java.lang.Float |
get(java.lang.Object key)
Deprecated.
|
float |
getDefaultReturnValue()
Method to see what the default return value is.
|
float |
getFloat(double key)
A Type Specific get method to reduce boxing/unboxing
|
float |
getOrDefault(double key,
float defaultValue)
A Type Specific getOrDefault method to reduce boxing/unboxing
|
default java.lang.Float |
getOrDefault(java.lang.Object key,
java.lang.Float defaultValue)
Deprecated.
|
DoubleSet |
keySet() |
default java.lang.Float |
merge(java.lang.Double key,
java.lang.Float value,
java.util.function.BiFunction<? super java.lang.Float,? super java.lang.Float,? extends java.lang.Float> mappingFunction)
Deprecated.
|
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
|
float |
put(double key,
float value)
Type Specific method to reduce boxing/unboxing of values
|
default java.lang.Float |
put(java.lang.Double key,
java.lang.Float value)
Deprecated.
|
default void |
putAll(double[] keys,
float[] values)
Type Specific array method to bulk add elements into a map without creating a wrapper and increasing performances
|
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 |
putAllIfAbsent(Double2FloatMap m)
Type-Specific bulk put method put elements into the map if not present.
|
float |
putIfAbsent(double key,
float value)
Type Specific method to reduce boxing/unboxing of values
|
default java.lang.Float |
putIfAbsent(java.lang.Double key,
java.lang.Float value)
Deprecated.
|
float |
remDouble(double key)
Type Specific remove function to reduce boxing/unboxing
|
float |
remDoubleOrDefault(double key,
float defaultValue)
Type-Specific Remove function with a default return value if wanted.
|
boolean |
remove(double key,
float value)
Type Specific remove function to reduce boxing/unboxing
|
default java.lang.Float |
remove(java.lang.Object key) |
default boolean |
remove(java.lang.Object key,
java.lang.Object value) |
float |
replace(double key,
float value)
A Type Specific replace method to reduce boxing/unboxing replace an existing value
|
default java.lang.Float |
replace(java.lang.Double key,
java.lang.Float value)
Deprecated.
|
boolean |
replace(double key,
float oldValue,
float newValue)
A Type Specific replace method to replace an existing value
|
default boolean |
replace(java.lang.Double key,
java.lang.Float oldValue,
java.lang.Float newValue)
Deprecated.
|
default void |
replaceAll(java.util.function.BiFunction<? super java.lang.Double,? super java.lang.Float,? extends java.lang.Float> mappingFunction)
Deprecated.
|
void |
replaceFloats(Double2FloatMap m)
Type-Specific bulk replace method.
|
void |
replaceFloats(DoubleFloatUnaryOperator mappingFunction)
A Type Specific mass replace method to reduce boxing/unboxing
|
Double2FloatMap |
setDefaultReturnValue(float v)
Method to define the default return value if a requested key isn't present
|
FloatCollection |
values() |
float getDefaultReturnValue()
Double2FloatMap setDefaultReturnValue(float v)
v - value that should be the default return valuefloat put(double key,
float value)
key - the key that should be inserted,value - the value that should be insertedMap.put(Object, Object)default void putAll(double[] keys,
float[] values)
keys - the keys that should be addedvalues - the values that should be addedjava.lang.IllegalStateException - if the arrays are not the same sizeMap.putAll(Map)void putAll(double[] keys,
float[] values,
int offset,
int size)
keys - the keys that should be addedvalues - the values that should be addedoffset - where the to start in the arraysize - how many elements should be addedjava.lang.IllegalStateException - if the arrays are not within the rangeMap.putAll(Map)float putIfAbsent(double key,
float value)
key - the key that should be inserted,value - the value that should be insertedMap.putIfAbsent(Object, Object)void putAllIfAbsent(Double2FloatMap m)
m - elements that should be added if not present.float addTo(double key,
float value)
key - the key that should be inserted,value - the value that should be inserted / addedvoid addToAll(Double2FloatMap m)
m - the values that should be added/insertedvoid putAll(Double2FloatMap m)
m - the elements that should be insertedboolean containsKey(double key)
key - element that is searched fordefault boolean containsKey(java.lang.Object key)
containsKey in interface java.util.Map<java.lang.Double,java.lang.Float>key - that is searched for.Map.containsKey(Object)boolean containsValue(float value)
value - element that is searched fordefault boolean containsValue(java.lang.Object value)
containsValue in interface java.util.Map<java.lang.Double,java.lang.Float>value - that is searched for.Map.containsValue(Object)float remDouble(double key)
key - the element that should be removeddefault java.lang.Float remove(java.lang.Object key)
remove in interface java.util.Map<java.lang.Double,java.lang.Float>key - the element that should be removedMap.remove(Object)boolean remove(double key,
float value)
key - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)default boolean remove(java.lang.Object key,
java.lang.Object value)
remove in interface java.util.Map<java.lang.Double,java.lang.Float>key - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)float remDoubleOrDefault(double key,
float defaultValue)
key - the element that should be removeddefaultValue - the value that should be returned if the entry doesn't existMap.remove(Object, Object)boolean replace(double key,
float oldValue,
float newValue)
key - the element that should be searched foroldValue - the expected value to be replacednewValue - the value to replace the oldValue with.float replace(double key,
float value)
key - the element that should be searched forvalue - the value to replace with.void replaceFloats(Double2FloatMap m)
m - elements that should be replaced.void replaceFloats(DoubleFloatUnaryOperator mappingFunction)
mappingFunction - operation to replace all valuesfloat computeFloat(double key,
DoubleFloatUnaryOperator mappingFunction)
key - the key that should be computedmappingFunction - the operator that should generate the valuefloat computeFloatIfAbsent(double key,
Double2FloatFunction mappingFunction)
key - the key that should be computedmappingFunction - the operator that should generate the value if not presentfloat computeFloatIfPresent(double key,
DoubleFloatUnaryOperator mappingFunction)
key - the key that should be computedmappingFunction - the operator that should generate the value if presentfloat mergeFloat(double key,
float value,
FloatFloatUnaryOperator mappingFunction)
key - the key that should be be searched forvalue - the value that should be merged withmappingFunction - the operator that should generate the new Valuevoid mergeAllFloat(Double2FloatMap m, FloatFloatUnaryOperator mappingFunction)
m - the entries that should be bulk addedmappingFunction - the operator that should generate the new Value@Deprecated
default boolean replace(java.lang.Double key,
java.lang.Float oldValue,
java.lang.Float newValue)
replace in interface java.util.Map<java.lang.Double,java.lang.Float>@Deprecated
default java.lang.Float replace(java.lang.Double key,
java.lang.Float value)
replace in interface java.util.Map<java.lang.Double,java.lang.Float>float getFloat(double key)
getFloat in interface Double2FloatFunctionkey - the key that is searched forfloat getOrDefault(double key,
float defaultValue)
key - the key that is searched fordefaultValue - the value that should be returned if the key is not present@Deprecated default java.lang.Float get(java.lang.Object key)
get in interface java.util.Map<java.lang.Double,java.lang.Float>@Deprecated
default java.lang.Float getOrDefault(java.lang.Object key,
java.lang.Float defaultValue)
getOrDefault in interface java.util.Map<java.lang.Double,java.lang.Float>@Deprecated default void replaceAll(java.util.function.BiFunction<? super java.lang.Double,? super java.lang.Float,? extends java.lang.Float> mappingFunction)
replaceAll in interface java.util.Map<java.lang.Double,java.lang.Float>@Deprecated
default java.lang.Float compute(java.lang.Double key,
java.util.function.BiFunction<? super java.lang.Double,? super java.lang.Float,? extends java.lang.Float> mappingFunction)
compute in interface java.util.Map<java.lang.Double,java.lang.Float>@Deprecated
default java.lang.Float computeIfAbsent(java.lang.Double key,
java.util.function.Function<? super java.lang.Double,? extends java.lang.Float> mappingFunction)
computeIfAbsent in interface java.util.Map<java.lang.Double,java.lang.Float>@Deprecated
default java.lang.Float computeIfPresent(java.lang.Double key,
java.util.function.BiFunction<? super java.lang.Double,? super java.lang.Float,? extends java.lang.Float> mappingFunction)
computeIfPresent in interface java.util.Map<java.lang.Double,java.lang.Float>@Deprecated
default java.lang.Float merge(java.lang.Double key,
java.lang.Float value,
java.util.function.BiFunction<? super java.lang.Float,? super java.lang.Float,? extends java.lang.Float> mappingFunction)
merge in interface java.util.Map<java.lang.Double,java.lang.Float>void forEach(DoubleFloatConsumer action)
action - processor of the values that are iterator over@Deprecated default void forEach(java.util.function.BiConsumer<? super java.lang.Double,? super java.lang.Float> action)
forEach in interface java.util.Map<java.lang.Double,java.lang.Float>DoubleSet keySet()
keySet in interface java.util.Map<java.lang.Double,java.lang.Float>FloatCollection values()
values in interface java.util.Map<java.lang.Double,java.lang.Float>@Deprecated ObjectSet<java.util.Map.Entry<java.lang.Double,java.lang.Float>> entrySet()
entrySet in interface java.util.Map<java.lang.Double,java.lang.Float>ObjectSet<Double2FloatMap.Entry> double2FloatEntrySet()
@Deprecated
default java.lang.Float put(java.lang.Double key,
java.lang.Float value)
put in interface java.util.Map<java.lang.Double,java.lang.Float>@Deprecated
default java.lang.Float putIfAbsent(java.lang.Double key,
java.lang.Float value)
putIfAbsent in interface java.util.Map<java.lang.Double,java.lang.Float>