public interface Float2DoubleMap extends java.util.Map<java.lang.Float,java.lang.Double>, Float2DoubleFunction
| Modifier and Type | Interface and Description |
|---|---|
static interface |
Float2DoubleMap.Entry
Type Specific Map Entry that reduces boxing/unboxing
|
static interface |
Float2DoubleMap.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 |
|---|---|
double |
addTo(float key,
double value)
A Helper method to add a primitives together.
|
void |
addToAll(Float2DoubleMap m)
A Helper method to bulk add primitives together.
|
default java.lang.Double |
compute(java.lang.Float key,
java.util.function.BiFunction<? super java.lang.Float,? super java.lang.Double,? extends java.lang.Double> mappingFunction)
Deprecated.
|
double |
computeDouble(float key,
FloatDoubleUnaryOperator mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
double |
computeDoubleIfAbsent(float key,
Float2DoubleFunction mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
double |
computeDoubleIfPresent(float key,
FloatDoubleUnaryOperator mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
default java.lang.Double |
computeIfAbsent(java.lang.Float key,
java.util.function.Function<? super java.lang.Float,? extends java.lang.Double> mappingFunction)
Deprecated.
|
default java.lang.Double |
computeIfPresent(java.lang.Float key,
java.util.function.BiFunction<? super java.lang.Float,? super java.lang.Double,? extends java.lang.Double> mappingFunction)
Deprecated.
|
boolean |
containsKey(float key)
Type Specific method to reduce boxing/unboxing of values
|
default boolean |
containsKey(java.lang.Object key) |
boolean |
containsValue(double value)
Type Specific method to reduce boxing/unboxing of values
|
default boolean |
containsValue(java.lang.Object value) |
ObjectSet<java.util.Map.Entry<java.lang.Float,java.lang.Double>> |
entrySet()
Deprecated.
|
ObjectSet<Float2DoubleMap.Entry> |
float2DoubleEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
default void |
forEach(java.util.function.BiConsumer<? super java.lang.Float,? super java.lang.Double> action)
Deprecated.
|
void |
forEach(FloatDoubleConsumer action)
Type Specific forEach method to reduce boxing/unboxing
|
default java.lang.Double |
get(java.lang.Object key)
Deprecated.
|
double |
getDefaultReturnValue()
Method to see what the default return value is.
|
double |
getDouble(float key)
A Type Specific get method to reduce boxing/unboxing
|
double |
getOrDefault(float key,
double defaultValue)
A Type Specific getOrDefault method to reduce boxing/unboxing
|
default java.lang.Double |
getOrDefault(java.lang.Object key,
java.lang.Double defaultValue)
Deprecated.
|
FloatSet |
keySet() |
default java.lang.Double |
merge(java.lang.Float key,
java.lang.Double value,
java.util.function.BiFunction<? super java.lang.Double,? super java.lang.Double,? extends java.lang.Double> mappingFunction)
Deprecated.
|
void |
mergeAllDouble(Float2DoubleMap m,
DoubleDoubleUnaryOperator mappingFunction)
A Bulk method for merging Maps.
|
double |
mergeDouble(float key,
double value,
DoubleDoubleUnaryOperator mappingFunction)
A Type Specific merge method to reduce boxing/unboxing
|
double |
put(float key,
double value)
Type Specific method to reduce boxing/unboxing of values
|
default java.lang.Double |
put(java.lang.Float key,
java.lang.Double value)
Deprecated.
|
default void |
putAll(float[] keys,
double[] values)
Type Specific array method to bulk add elements into a map without creating a wrapper and increasing performances
|
void |
putAll(float[] 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(Float2DoubleMap m)
Type Specific function for the bull putting of values
|
void |
putAllIfAbsent(Float2DoubleMap m)
Type-Specific bulk put method put elements into the map if not present.
|
double |
putIfAbsent(float key,
double value)
Type Specific method to reduce boxing/unboxing of values
|
default java.lang.Double |
putIfAbsent(java.lang.Float key,
java.lang.Double value)
Deprecated.
|
double |
remFloat(float key)
Type Specific remove function to reduce boxing/unboxing
|
double |
remFloatOrDefault(float key,
double defaultValue)
Type-Specific Remove function with a default return value if wanted.
|
boolean |
remove(float key,
double value)
Type Specific remove function to reduce boxing/unboxing
|
default java.lang.Double |
remove(java.lang.Object key) |
default boolean |
remove(java.lang.Object key,
java.lang.Object value) |
double |
replace(float key,
double value)
A Type Specific replace method to reduce boxing/unboxing replace an existing value
|
default java.lang.Double |
replace(java.lang.Float key,
java.lang.Double value)
Deprecated.
|
boolean |
replace(float key,
double oldValue,
double newValue)
A Type Specific replace method to replace an existing value
|
default boolean |
replace(java.lang.Float key,
java.lang.Double oldValue,
java.lang.Double newValue)
Deprecated.
|
default void |
replaceAll(java.util.function.BiFunction<? super java.lang.Float,? super java.lang.Double,? extends java.lang.Double> mappingFunction)
Deprecated.
|
void |
replaceDoubles(Float2DoubleMap m)
Type-Specific bulk replace method.
|
void |
replaceDoubles(FloatDoubleUnaryOperator mappingFunction)
A Type Specific mass replace method to reduce boxing/unboxing
|
Float2DoubleMap |
setDefaultReturnValue(double v)
Method to define the default return value if a requested key isn't present
|
DoubleCollection |
values() |
double getDefaultReturnValue()
Float2DoubleMap setDefaultReturnValue(double v)
v - value that should be the default return valuedouble put(float key,
double value)
key - the key that should be inserted,value - the value that should be insertedMap.put(Object, Object)default void putAll(float[] keys,
double[] 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(float[] keys,
double[] 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)double putIfAbsent(float key,
double value)
key - the key that should be inserted,value - the value that should be insertedMap.putIfAbsent(Object, Object)void putAllIfAbsent(Float2DoubleMap m)
m - elements that should be added if not present.double addTo(float key,
double value)
key - the key that should be inserted,value - the value that should be inserted / addedvoid addToAll(Float2DoubleMap m)
m - the values that should be added/insertedvoid putAll(Float2DoubleMap m)
m - the elements that should be insertedboolean containsKey(float key)
key - element that is searched fordefault boolean containsKey(java.lang.Object key)
containsKey in interface java.util.Map<java.lang.Float,java.lang.Double>key - that is searched for.Map.containsKey(Object)boolean containsValue(double value)
value - element that is searched fordefault boolean containsValue(java.lang.Object value)
containsValue in interface java.util.Map<java.lang.Float,java.lang.Double>value - that is searched for.Map.containsValue(Object)double remFloat(float key)
key - the element that should be removeddefault java.lang.Double remove(java.lang.Object key)
remove in interface java.util.Map<java.lang.Float,java.lang.Double>key - the element that should be removedMap.remove(Object)boolean remove(float key,
double 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.Float,java.lang.Double>key - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)double remFloatOrDefault(float key,
double 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(float key,
double oldValue,
double newValue)
key - the element that should be searched foroldValue - the expected value to be replacednewValue - the value to replace the oldValue with.double replace(float key,
double value)
key - the element that should be searched forvalue - the value to replace with.void replaceDoubles(Float2DoubleMap m)
m - elements that should be replaced.void replaceDoubles(FloatDoubleUnaryOperator mappingFunction)
mappingFunction - operation to replace all valuesdouble computeDouble(float key,
FloatDoubleUnaryOperator mappingFunction)
key - the key that should be computedmappingFunction - the operator that should generate the valuedouble computeDoubleIfAbsent(float key,
Float2DoubleFunction mappingFunction)
key - the key that should be computedmappingFunction - the operator that should generate the value if not presentdouble computeDoubleIfPresent(float key,
FloatDoubleUnaryOperator mappingFunction)
key - the key that should be computedmappingFunction - the operator that should generate the value if presentdouble mergeDouble(float key,
double value,
DoubleDoubleUnaryOperator 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 mergeAllDouble(Float2DoubleMap m, DoubleDoubleUnaryOperator mappingFunction)
m - the entries that should be bulk addedmappingFunction - the operator that should generate the new Value@Deprecated
default boolean replace(java.lang.Float key,
java.lang.Double oldValue,
java.lang.Double newValue)
replace in interface java.util.Map<java.lang.Float,java.lang.Double>@Deprecated
default java.lang.Double replace(java.lang.Float key,
java.lang.Double value)
replace in interface java.util.Map<java.lang.Float,java.lang.Double>double getDouble(float key)
getDouble in interface Float2DoubleFunctionkey - the key that is searched fordouble getOrDefault(float key,
double defaultValue)
key - the key that is searched fordefaultValue - the value that should be returned if the key is not present@Deprecated default java.lang.Double get(java.lang.Object key)
get in interface java.util.Map<java.lang.Float,java.lang.Double>@Deprecated
default java.lang.Double getOrDefault(java.lang.Object key,
java.lang.Double defaultValue)
getOrDefault in interface java.util.Map<java.lang.Float,java.lang.Double>@Deprecated default void replaceAll(java.util.function.BiFunction<? super java.lang.Float,? super java.lang.Double,? extends java.lang.Double> mappingFunction)
replaceAll in interface java.util.Map<java.lang.Float,java.lang.Double>@Deprecated
default java.lang.Double compute(java.lang.Float key,
java.util.function.BiFunction<? super java.lang.Float,? super java.lang.Double,? extends java.lang.Double> mappingFunction)
compute in interface java.util.Map<java.lang.Float,java.lang.Double>@Deprecated
default java.lang.Double computeIfAbsent(java.lang.Float key,
java.util.function.Function<? super java.lang.Float,? extends java.lang.Double> mappingFunction)
computeIfAbsent in interface java.util.Map<java.lang.Float,java.lang.Double>@Deprecated
default java.lang.Double computeIfPresent(java.lang.Float key,
java.util.function.BiFunction<? super java.lang.Float,? super java.lang.Double,? extends java.lang.Double> mappingFunction)
computeIfPresent in interface java.util.Map<java.lang.Float,java.lang.Double>@Deprecated
default java.lang.Double merge(java.lang.Float key,
java.lang.Double value,
java.util.function.BiFunction<? super java.lang.Double,? super java.lang.Double,? extends java.lang.Double> mappingFunction)
merge in interface java.util.Map<java.lang.Float,java.lang.Double>void forEach(FloatDoubleConsumer action)
action - processor of the values that are iterator over@Deprecated default void forEach(java.util.function.BiConsumer<? super java.lang.Float,? super java.lang.Double> action)
forEach in interface java.util.Map<java.lang.Float,java.lang.Double>FloatSet keySet()
keySet in interface java.util.Map<java.lang.Float,java.lang.Double>DoubleCollection values()
values in interface java.util.Map<java.lang.Float,java.lang.Double>@Deprecated ObjectSet<java.util.Map.Entry<java.lang.Float,java.lang.Double>> entrySet()
entrySet in interface java.util.Map<java.lang.Float,java.lang.Double>ObjectSet<Float2DoubleMap.Entry> float2DoubleEntrySet()
@Deprecated
default java.lang.Double put(java.lang.Float key,
java.lang.Double value)
put in interface java.util.Map<java.lang.Float,java.lang.Double>@Deprecated
default java.lang.Double putIfAbsent(java.lang.Float key,
java.lang.Double value)
putIfAbsent in interface java.util.Map<java.lang.Float,java.lang.Double>