public static class Double2FloatMaps.SynchronizedMap extends AbstractDouble2FloatMap implements Double2FloatMap
AbstractDouble2FloatMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Double2FloatMap.BuilderCache, Double2FloatMap.Entry, Double2FloatMap.FastEntrySet, Double2FloatMap.MapBuilder| 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.
|
void |
clear()
Deprecated.
|
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
|
java.lang.Float |
computeIfAbsent(java.lang.Double key,
java.util.function.Function<? super java.lang.Double,? extends java.lang.Float> mappingFunction)
Deprecated.
|
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
|
boolean |
containsKey(java.lang.Object key)
Deprecated.
|
boolean |
containsValue(float value)
Type Specific method to reduce boxing/unboxing of values
|
boolean |
containsValue(java.lang.Object value)
Deprecated.
|
Double2FloatMap |
copy()
A Function that does a shallow clone of the Map itself.
|
ObjectSet<Double2FloatMap.Entry> |
double2FloatEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
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
|
float |
get(double key)
A Type Specific get method to reduce boxing/unboxing
|
java.lang.Float |
get(java.lang.Object key)
Deprecated.
|
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)
Deprecated.
|
DoubleSet |
keySet() |
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
|
java.lang.Float |
put(java.lang.Double key,
java.lang.Float value)
Deprecated.
|
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 |
putIfAbsent(double key,
float value)
Type Specific method to reduce boxing/unboxing of values
|
java.lang.Float |
putIfAbsent(java.lang.Double key,
java.lang.Float value)
Deprecated.
|
float |
remove(double key)
Type Specific remove function to reduce boxing/unboxing
|
boolean |
remove(double key,
float value)
Type Specific remove function to reduce boxing/unboxing
|
java.lang.Float |
remove(java.lang.Object key)
Deprecated.
|
boolean |
remove(java.lang.Object key,
java.lang.Object value)
Deprecated.
|
float |
removeOrDefault(double key,
float defaultValue)
Type-Specific Remove function with a default return value if wanted.
|
float |
replace(double key,
float value)
A Type Specific replace method to reduce boxing/unboxing replace an existing value
|
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
|
boolean |
replace(java.lang.Double key,
java.lang.Float oldValue,
java.lang.Float newValue)
Deprecated.
|
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
|
AbstractDouble2FloatMap |
setDefaultReturnValue(float v)
Method to define the default return value if a requested key isn't present
|
int |
size() |
float |
subFrom(double key,
float value)
A Helper method to subtract from primitive from each other.
|
float |
supplyFloatIfAbsent(double key,
FloatSupplier valueProvider)
A Supplier based computeIfAbsent function to fill the most used usecase of this function
|
FloatCollection |
values() |
entrySet, equals, hashCode, putAllbuilder, entrySet, putAll, putAll, putAll, synchronize, synchronize, unmodifiablepublic float getDefaultReturnValue()
Double2FloatMapgetDefaultReturnValue in interface Double2FloatMapgetDefaultReturnValue in class AbstractDouble2FloatMappublic AbstractDouble2FloatMap setDefaultReturnValue(float v)
Double2FloatMapsetDefaultReturnValue in interface Double2FloatMapsetDefaultReturnValue in class AbstractDouble2FloatMapv - value that should be the default return valuepublic float put(double key,
float value)
Double2FloatMapput in interface Double2FloatMapkey - the key that should be inserted,value - the value that should be insertedMap.put(Object, Object)public float putIfAbsent(double key,
float value)
Double2FloatMapputIfAbsent in interface Double2FloatMapkey - the key that should be inserted,value - the value that should be insertedMap.putIfAbsent(Object, Object)public void putAllIfAbsent(Double2FloatMap m)
Double2FloatMapputAllIfAbsent in interface Double2FloatMapputAllIfAbsent in class AbstractDouble2FloatMapm - elements that should be added if not present.public float addTo(double key,
float value)
Double2FloatMapaddTo in interface Double2FloatMapkey - the key that should be inserted,value - the value that should be inserted / addedpublic float subFrom(double key,
float value)
Double2FloatMapDouble2FloatMap.getDefaultReturnValue()
If the fence is reached the element will be automaticall removedsubFrom in interface Double2FloatMapkey - that should be subtract fromvalue - that should be subtractpublic void addToAll(Double2FloatMap m)
Double2FloatMapaddToAll in interface Double2FloatMapaddToAll in class AbstractDouble2FloatMapm - the values that should be added/insertedpublic void putAll(Double2FloatMap m)
Double2FloatMapputAll in interface Double2FloatMapputAll in class AbstractDouble2FloatMapm - 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 AbstractDouble2FloatMappublic void putAll(double[] keys,
float[] values,
int offset,
int size)
Double2FloatMapputAll in interface Double2FloatMapputAll in class AbstractDouble2FloatMapkeys - 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(double key)
Double2FloatMapcontainsKey in interface Double2FloatMapcontainsKey in class AbstractDouble2FloatMapkey - element that is searched forpublic boolean containsValue(float value)
Double2FloatMapcontainsValue in interface Double2FloatMapcontainsValue in class AbstractDouble2FloatMapvalue - element that is searched forpublic float get(double key)
Double2FloatMapget in interface Double2FloatFunctionget in interface Double2FloatMapkey - the key that is searched forpublic float remove(double key)
Double2FloatMapremove in interface Double2FloatMapkey - the element that should be removedpublic float removeOrDefault(double key,
float defaultValue)
Double2FloatMapremoveOrDefault in interface Double2FloatMapkey - the element that should be removeddefaultValue - the value that should be returned if the entry doesn't existMap.remove(Object, Object)public boolean remove(double key,
float value)
Double2FloatMapremove in interface Double2FloatMapkey - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)public boolean replace(double key,
float oldValue,
float newValue)
Double2FloatMapreplace in interface Double2FloatMapreplace in class AbstractDouble2FloatMapkey - 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 Double2FloatMapreplace in class AbstractDouble2FloatMapkey - the element that should be searched forvalue - the value to replace with.public void replaceFloats(Double2FloatMap m)
Double2FloatMapreplaceFloats in interface Double2FloatMapreplaceFloats in class AbstractDouble2FloatMapm - elements that should be replaced.public void replaceFloats(DoubleFloatUnaryOperator mappingFunction)
Double2FloatMapreplaceFloats in interface Double2FloatMapreplaceFloats in class AbstractDouble2FloatMapmappingFunction - operation to replace all valuespublic float computeFloat(double key,
DoubleFloatUnaryOperator mappingFunction)
Double2FloatMapcomputeFloat in interface Double2FloatMapcomputeFloat in class AbstractDouble2FloatMapkey - the key that should be computedmappingFunction - the operator that should generate the valuepublic float computeFloatIfAbsent(double key,
Double2FloatFunction mappingFunction)
Double2FloatMapcomputeFloatIfAbsent in interface Double2FloatMapcomputeFloatIfAbsent in class AbstractDouble2FloatMapkey - 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 Double2FloatMapcomputeFloatIfPresent in class AbstractDouble2FloatMapkey - the key that should be computedmappingFunction - the operator that should generate the value if presentpublic float supplyFloatIfAbsent(double key,
FloatSupplier valueProvider)
Double2FloatMapsupplyFloatIfAbsent in interface Double2FloatMapsupplyFloatIfAbsent in class AbstractDouble2FloatMapkey - the key that should be computedvalueProvider - the value if not presentpublic float mergeFloat(double key,
float value,
FloatFloatUnaryOperator mappingFunction)
Double2FloatMapmergeFloat in interface Double2FloatMapmergeFloat in class AbstractDouble2FloatMapkey - 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 Double2FloatMapmergeAllFloat in class AbstractDouble2FloatMapm - the entries that should be bulk addedmappingFunction - the operator that should generate the new Valuepublic float getOrDefault(double key,
float defaultValue)
Double2FloatMapgetOrDefault in interface Double2FloatMapgetOrDefault in class AbstractDouble2FloatMapkey - 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 Double2FloatMapforEach in class AbstractDouble2FloatMapaction - processor of the values that are iterator overpublic int size()
size in interface java.util.Map<java.lang.Double,java.lang.Float>size in class java.util.AbstractMap<java.lang.Double,java.lang.Float>public Double2FloatMap copy()
Double2FloatMapcopy in interface Double2FloatMapcopy in class AbstractDouble2FloatMappublic DoubleSet keySet()
keySet in interface java.util.Map<java.lang.Double,java.lang.Float>keySet in interface Double2FloatMapkeySet in class AbstractDouble2FloatMappublic FloatCollection values()
values in interface java.util.Map<java.lang.Double,java.lang.Float>values in interface Double2FloatMapvalues in class AbstractDouble2FloatMappublic ObjectSet<Double2FloatMap.Entry> double2FloatEntrySet()
Double2FloatMapdouble2FloatEntrySet in interface Double2FloatMap@Deprecated public 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 AbstractDouble2FloatMap@Deprecated
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 Double2FloatMapgetOrDefault in class AbstractDouble2FloatMap@Deprecated public boolean containsValue(java.lang.Object value)
containsValue in interface java.util.Map<java.lang.Double,java.lang.Float>containsValue in interface Double2FloatMapcontainsValue in class java.util.AbstractMap<java.lang.Double,java.lang.Float>value - that is searched for.Map.containsValue(Object)@Deprecated public boolean containsKey(java.lang.Object key)
containsKey in interface java.util.Map<java.lang.Double,java.lang.Float>containsKey in interface Double2FloatMapcontainsKey in class java.util.AbstractMap<java.lang.Double,java.lang.Float>key - that is searched for.Map.containsKey(Object)@Deprecated
public java.lang.Float put(java.lang.Double key,
java.lang.Float value)
put in interface java.util.Map<java.lang.Double,java.lang.Float>put in interface Double2FloatMapput in class AbstractDouble2FloatMap@Deprecated public java.lang.Float remove(java.lang.Object key)
remove in interface java.util.Map<java.lang.Double,java.lang.Float>remove in interface Double2FloatMapremove in class AbstractDouble2FloatMapkey - the element that should be removedMap.remove(Object)@Deprecated public void clear()
clear in interface java.util.Map<java.lang.Double,java.lang.Float>clear in class java.util.AbstractMap<java.lang.Double,java.lang.Float>@Deprecated
public java.lang.Float putIfAbsent(java.lang.Double key,
java.lang.Float value)
putIfAbsent in interface java.util.Map<java.lang.Double,java.lang.Float>putIfAbsent in interface Double2FloatMap@Deprecated
public boolean remove(java.lang.Object key,
java.lang.Object value)
remove in interface java.util.Map<java.lang.Double,java.lang.Float>remove in interface Double2FloatMapkey - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)@Deprecated
public 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>replace in interface Double2FloatMap@Deprecated
public java.lang.Float replace(java.lang.Double key,
java.lang.Float value)
replace in interface java.util.Map<java.lang.Double,java.lang.Float>replace in interface Double2FloatMap@Deprecated public 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>replaceAll in interface Double2FloatMap@Deprecated
public 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>compute in interface Double2FloatMap@Deprecated
public 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>computeIfAbsent in interface Double2FloatMap@Deprecated
public 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>computeIfPresent in interface Double2FloatMap@Deprecated
public 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>merge in interface Double2FloatMap@Deprecated public 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>forEach in interface Double2FloatMap