public static class Float2DoubleMaps.SynchronizedMap extends AbstractFloat2DoubleMap implements Float2DoubleMap
AbstractFloat2DoubleMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Float2DoubleMap.Entry, Float2DoubleMap.FastEntrySet| 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.
|
void |
clear()
Deprecated.
|
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
|
java.lang.Double |
computeIfAbsent(java.lang.Float key,
java.util.function.Function<? super java.lang.Float,? extends java.lang.Double> mappingFunction)
Deprecated.
|
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
|
boolean |
containsKey(java.lang.Object key)
Deprecated.
|
boolean |
containsValue(double value)
Type Specific method to reduce boxing/unboxing of values
|
boolean |
containsValue(java.lang.Object value)
Deprecated.
|
ObjectSet<Float2DoubleMap.Entry> |
float2DoubleEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
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
|
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
|
java.lang.Double |
getOrDefault(java.lang.Object key,
java.lang.Double defaultValue)
Deprecated.
|
FloatSet |
keySet() |
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
|
java.lang.Double |
put(java.lang.Float key,
java.lang.Double value)
Deprecated.
|
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 |
putAll(java.util.Map<? extends java.lang.Float,? extends java.lang.Double> m) |
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
|
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
|
java.lang.Double |
remove(java.lang.Object key)
Deprecated.
|
boolean |
remove(java.lang.Object key,
java.lang.Object value)
Deprecated.
|
double |
replace(float key,
double value)
A Type Specific replace method to reduce boxing/unboxing replace an existing value
|
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
|
boolean |
replace(java.lang.Float key,
java.lang.Double oldValue,
java.lang.Double newValue)
Deprecated.
|
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
|
AbstractFloat2DoubleMap |
setDefaultReturnValue(double v)
Method to define the default return value if a requested key isn't present
|
int |
size() |
DoubleCollection |
values() |
entrySet, equals, hashCodeentrySet, putAllpublic double getDefaultReturnValue()
Float2DoubleMapgetDefaultReturnValue in interface Float2DoubleMapgetDefaultReturnValue in class AbstractFloat2DoubleMappublic AbstractFloat2DoubleMap setDefaultReturnValue(double v)
Float2DoubleMapsetDefaultReturnValue in interface Float2DoubleMapsetDefaultReturnValue in class AbstractFloat2DoubleMapv - value that should be the default return valuepublic double put(float key,
double value)
Float2DoubleMapput in interface Float2DoubleMapkey - the key that should be inserted,value - the value that should be insertedMap.put(Object, Object)public double putIfAbsent(float key,
double value)
Float2DoubleMapputIfAbsent in interface Float2DoubleMapkey - the key that should be inserted,value - the value that should be insertedMap.putIfAbsent(Object, Object)public void putAllIfAbsent(Float2DoubleMap m)
Float2DoubleMapputAllIfAbsent in interface Float2DoubleMapputAllIfAbsent in class AbstractFloat2DoubleMapm - elements that should be added if not present.public double addTo(float key,
double value)
Float2DoubleMapaddTo in interface Float2DoubleMapkey - the key that should be inserted,value - the value that should be inserted / addedpublic void addToAll(Float2DoubleMap m)
Float2DoubleMapaddToAll in interface Float2DoubleMapaddToAll in class AbstractFloat2DoubleMapm - the values that should be added/insertedpublic void putAll(Float2DoubleMap m)
Float2DoubleMapputAll in interface Float2DoubleMapputAll in class AbstractFloat2DoubleMapm - the elements that should be insertedpublic void putAll(java.util.Map<? extends java.lang.Float,? extends java.lang.Double> m)
putAll in interface java.util.Map<java.lang.Float,java.lang.Double>putAll in class AbstractFloat2DoubleMappublic void putAll(float[] keys,
double[] values,
int offset,
int size)
Float2DoubleMapputAll in interface Float2DoubleMapputAll in class AbstractFloat2DoubleMapkeys - 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 boolean containsKey(float key)
Float2DoubleMapcontainsKey in interface Float2DoubleMapcontainsKey in class AbstractFloat2DoubleMapkey - element that is searched forpublic boolean containsValue(double value)
Float2DoubleMapcontainsValue in interface Float2DoubleMapcontainsValue in class AbstractFloat2DoubleMapvalue - element that is searched forpublic double getDouble(float key)
Float2DoubleMapgetDouble in interface Float2DoubleFunctiongetDouble in interface Float2DoubleMapkey - the key that is searched forpublic double remFloat(float key)
Float2DoubleMapremFloat in interface Float2DoubleMapkey - the element that should be removedpublic double remFloatOrDefault(float key,
double defaultValue)
Float2DoubleMapremFloatOrDefault in interface Float2DoubleMapkey - the element that should be removeddefaultValue - the value that should be returned if the entry doesn't existMap.remove(Object, Object)public boolean remove(float key,
double value)
Float2DoubleMapremove in interface Float2DoubleMapkey - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)public boolean replace(float key,
double oldValue,
double newValue)
Float2DoubleMapreplace in interface Float2DoubleMapreplace in class AbstractFloat2DoubleMapkey - the element that should be searched foroldValue - the expected value to be replacednewValue - the value to replace the oldValue with.public double replace(float key,
double value)
Float2DoubleMapreplace in interface Float2DoubleMapreplace in class AbstractFloat2DoubleMapkey - the element that should be searched forvalue - the value to replace with.public void replaceDoubles(Float2DoubleMap m)
Float2DoubleMapreplaceDoubles in interface Float2DoubleMapreplaceDoubles in class AbstractFloat2DoubleMapm - elements that should be replaced.public void replaceDoubles(FloatDoubleUnaryOperator mappingFunction)
Float2DoubleMapreplaceDoubles in interface Float2DoubleMapreplaceDoubles in class AbstractFloat2DoubleMapmappingFunction - operation to replace all valuespublic double computeDouble(float key,
FloatDoubleUnaryOperator mappingFunction)
Float2DoubleMapcomputeDouble in interface Float2DoubleMapcomputeDouble in class AbstractFloat2DoubleMapkey - the key that should be computedmappingFunction - the operator that should generate the valuepublic double computeDoubleIfAbsent(float key,
Float2DoubleFunction mappingFunction)
Float2DoubleMapcomputeDoubleIfAbsent in interface Float2DoubleMapcomputeDoubleIfAbsent in class AbstractFloat2DoubleMapkey - the key that should be computedmappingFunction - the operator that should generate the value if not presentpublic double computeDoubleIfPresent(float key,
FloatDoubleUnaryOperator mappingFunction)
Float2DoubleMapcomputeDoubleIfPresent in interface Float2DoubleMapcomputeDoubleIfPresent in class AbstractFloat2DoubleMapkey - the key that should be computedmappingFunction - the operator that should generate the value if presentpublic double mergeDouble(float key,
double value,
DoubleDoubleUnaryOperator mappingFunction)
Float2DoubleMapmergeDouble in interface Float2DoubleMapmergeDouble in class AbstractFloat2DoubleMapkey - 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(Float2DoubleMap m, DoubleDoubleUnaryOperator mappingFunction)
Float2DoubleMapmergeAllDouble in interface Float2DoubleMapmergeAllDouble in class AbstractFloat2DoubleMapm - the entries that should be bulk addedmappingFunction - the operator that should generate the new Valuepublic double getOrDefault(float key,
double defaultValue)
Float2DoubleMapgetOrDefault in interface Float2DoubleMapgetOrDefault in class AbstractFloat2DoubleMapkey - the key that is searched fordefaultValue - the value that should be returned if the key is not presentpublic void forEach(FloatDoubleConsumer action)
Float2DoubleMapforEach in interface Float2DoubleMapforEach in class AbstractFloat2DoubleMapaction - processor of the values that are iterator overpublic int size()
size in interface java.util.Map<java.lang.Float,java.lang.Double>size in class java.util.AbstractMap<java.lang.Float,java.lang.Double>public FloatSet keySet()
keySet in interface java.util.Map<java.lang.Float,java.lang.Double>keySet in interface Float2DoubleMapkeySet in class AbstractFloat2DoubleMappublic DoubleCollection values()
values in interface java.util.Map<java.lang.Float,java.lang.Double>values in interface Float2DoubleMapvalues in class AbstractFloat2DoubleMappublic ObjectSet<Float2DoubleMap.Entry> float2DoubleEntrySet()
Float2DoubleMapfloat2DoubleEntrySet in interface Float2DoubleMap@Deprecated public java.lang.Double get(java.lang.Object key)
get in interface java.util.Map<java.lang.Float,java.lang.Double>get in interface Float2DoubleMapget in class AbstractFloat2DoubleMap@Deprecated
public java.lang.Double getOrDefault(java.lang.Object key,
java.lang.Double defaultValue)
getOrDefault in interface java.util.Map<java.lang.Float,java.lang.Double>getOrDefault in interface Float2DoubleMapgetOrDefault in class AbstractFloat2DoubleMap@Deprecated public boolean containsValue(java.lang.Object value)
containsValue in interface java.util.Map<java.lang.Float,java.lang.Double>containsValue in interface Float2DoubleMapcontainsValue in class java.util.AbstractMap<java.lang.Float,java.lang.Double>value - that is searched for.Map.containsValue(Object)@Deprecated public boolean containsKey(java.lang.Object key)
containsKey in interface java.util.Map<java.lang.Float,java.lang.Double>containsKey in interface Float2DoubleMapcontainsKey in class java.util.AbstractMap<java.lang.Float,java.lang.Double>key - that is searched for.Map.containsKey(Object)@Deprecated
public java.lang.Double put(java.lang.Float key,
java.lang.Double value)
put in interface java.util.Map<java.lang.Float,java.lang.Double>put in interface Float2DoubleMapput in class java.util.AbstractMap<java.lang.Float,java.lang.Double>@Deprecated public java.lang.Double remove(java.lang.Object key)
remove in interface java.util.Map<java.lang.Float,java.lang.Double>remove in interface Float2DoubleMapremove in class java.util.AbstractMap<java.lang.Float,java.lang.Double>key - the element that should be removedMap.remove(Object)@Deprecated public void clear()
clear in interface java.util.Map<java.lang.Float,java.lang.Double>clear in class java.util.AbstractMap<java.lang.Float,java.lang.Double>@Deprecated
public java.lang.Double putIfAbsent(java.lang.Float key,
java.lang.Double value)
putIfAbsent in interface java.util.Map<java.lang.Float,java.lang.Double>putIfAbsent in interface Float2DoubleMap@Deprecated
public boolean remove(java.lang.Object key,
java.lang.Object value)
remove in interface java.util.Map<java.lang.Float,java.lang.Double>remove in interface Float2DoubleMapkey - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)@Deprecated
public 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>replace in interface Float2DoubleMap@Deprecated
public java.lang.Double replace(java.lang.Float key,
java.lang.Double value)
replace in interface java.util.Map<java.lang.Float,java.lang.Double>replace in interface Float2DoubleMap@Deprecated public 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>replaceAll in interface Float2DoubleMap@Deprecated
public 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>compute in interface Float2DoubleMap@Deprecated
public 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>computeIfAbsent in interface Float2DoubleMap@Deprecated
public 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>computeIfPresent in interface Float2DoubleMap@Deprecated
public 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>merge in interface Float2DoubleMap@Deprecated public 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>forEach in interface Float2DoubleMap