public static class Float2FloatMaps.SynchronizedMap extends AbstractFloat2FloatMap implements Float2FloatMap
AbstractFloat2FloatMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Float2FloatMap.BuilderCache, Float2FloatMap.Entry, Float2FloatMap.FastEntrySet, Float2FloatMap.MapBuilder| Modifier and Type | Method and Description |
|---|---|
float |
addTo(float key,
float value)
A Helper method to add a primitives together.
|
void |
addToAll(Float2FloatMap m)
A Helper method to bulk add primitives together.
|
void |
clear()
Deprecated.
|
java.lang.Float |
compute(java.lang.Float key,
java.util.function.BiFunction<? super java.lang.Float,? super java.lang.Float,? extends java.lang.Float> mappingFunction)
Deprecated.
|
float |
computeFloat(float key,
FloatFloatUnaryOperator mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
float |
computeFloatIfAbsent(float key,
FloatUnaryOperator mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
float |
computeFloatIfPresent(float key,
FloatFloatUnaryOperator mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
java.lang.Float |
computeIfAbsent(java.lang.Float key,
java.util.function.Function<? super java.lang.Float,? extends java.lang.Float> mappingFunction)
Deprecated.
|
java.lang.Float |
computeIfPresent(java.lang.Float key,
java.util.function.BiFunction<? super java.lang.Float,? super java.lang.Float,? extends java.lang.Float> mappingFunction)
Deprecated.
|
boolean |
containsKey(float 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.
|
Float2FloatMap |
copy()
A Function that does a shallow clone of the Map itself.
|
ObjectSet<Float2FloatMap.Entry> |
float2FloatEntrySet()
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.Float> action)
Deprecated.
|
void |
forEach(FloatFloatConsumer action)
Type Specific forEach method to reduce boxing/unboxing
|
float |
get(float 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(float 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.
|
FloatSet |
keySet() |
java.lang.Float |
merge(java.lang.Float 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(Float2FloatMap m,
FloatFloatUnaryOperator mappingFunction)
A Bulk method for merging Maps.
|
float |
mergeFloat(float key,
float value,
FloatFloatUnaryOperator mappingFunction)
A Type Specific merge method to reduce boxing/unboxing
|
float |
put(float key,
float value)
Type Specific method to reduce boxing/unboxing of values
|
java.lang.Float |
put(java.lang.Float key,
java.lang.Float value)
Deprecated.
|
void |
putAll(float[] 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(Float2FloatMap m)
Type Specific function for the bull putting of values
|
void |
putAll(java.util.Map<? extends java.lang.Float,? extends java.lang.Float> m) |
void |
putAllIfAbsent(Float2FloatMap m)
Type-Specific bulk put method put elements into the map if not present.
|
float |
putIfAbsent(float key,
float value)
Type Specific method to reduce boxing/unboxing of values
|
java.lang.Float |
putIfAbsent(java.lang.Float key,
java.lang.Float value)
Deprecated.
|
float |
remove(float key)
Type Specific remove function to reduce boxing/unboxing
|
boolean |
remove(float 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(float key,
float defaultValue)
Type-Specific Remove function with a default return value if wanted.
|
float |
replace(float key,
float value)
A Type Specific replace method to reduce boxing/unboxing replace an existing value
|
java.lang.Float |
replace(java.lang.Float key,
java.lang.Float value)
Deprecated.
|
boolean |
replace(float key,
float oldValue,
float newValue)
A Type Specific replace method to replace an existing value
|
boolean |
replace(java.lang.Float key,
java.lang.Float oldValue,
java.lang.Float newValue)
Deprecated.
|
void |
replaceAll(java.util.function.BiFunction<? super java.lang.Float,? super java.lang.Float,? extends java.lang.Float> mappingFunction)
Deprecated.
|
void |
replaceFloats(Float2FloatMap m)
Type-Specific bulk replace method.
|
void |
replaceFloats(FloatFloatUnaryOperator mappingFunction)
A Type Specific mass replace method to reduce boxing/unboxing
|
AbstractFloat2FloatMap |
setDefaultReturnValue(float v)
Method to define the default return value if a requested key isn't present
|
int |
size() |
float |
subFrom(float key,
float value)
A Helper method to subtract from primitive from each other.
|
float |
supplyFloatIfAbsent(float key,
FloatSupplier valueProvider)
A Supplier based computeIfAbsent function to fill the most used usecase of this function
|
FloatCollection |
values() |
entrySet, equals, hashCode, putAllapplyAsFloat, builder, entrySet, put, put, putAll, putAll, putAll, synchronize, synchronize, unmodifiableandThen, compose, identitypublic float getDefaultReturnValue()
Float2FloatMapgetDefaultReturnValue in interface Float2FloatMapgetDefaultReturnValue in class AbstractFloat2FloatMappublic AbstractFloat2FloatMap setDefaultReturnValue(float v)
Float2FloatMapsetDefaultReturnValue in interface Float2FloatMapsetDefaultReturnValue in class AbstractFloat2FloatMapv - value that should be the default return valuepublic float put(float key,
float value)
Float2FloatMapput in interface Float2FloatMapkey - the key that should be inserted,value - the value that should be insertedMap.put(Object, Object)public float putIfAbsent(float key,
float value)
Float2FloatMapputIfAbsent in interface Float2FloatMapkey - the key that should be inserted,value - the value that should be insertedMap.putIfAbsent(Object, Object)public void putAllIfAbsent(Float2FloatMap m)
Float2FloatMapputAllIfAbsent in interface Float2FloatMapputAllIfAbsent in class AbstractFloat2FloatMapm - elements that should be added if not present.public float addTo(float key,
float value)
Float2FloatMapaddTo in interface Float2FloatMapkey - the key that should be inserted,value - the value that should be inserted / addedpublic float subFrom(float key,
float value)
Float2FloatMapFloat2FloatMap.getDefaultReturnValue()
If the fence is reached the element will be automaticall removedsubFrom in interface Float2FloatMapkey - that should be subtract fromvalue - that should be subtractpublic void addToAll(Float2FloatMap m)
Float2FloatMapaddToAll in interface Float2FloatMapaddToAll in class AbstractFloat2FloatMapm - the values that should be added/insertedpublic void putAll(Float2FloatMap m)
Float2FloatMapputAll in interface Float2FloatMapputAll in class AbstractFloat2FloatMapm - the elements that should be insertedpublic void putAll(java.util.Map<? extends java.lang.Float,? extends java.lang.Float> m)
putAll in interface java.util.Map<java.lang.Float,java.lang.Float>putAll in class AbstractFloat2FloatMappublic void putAll(float[] keys,
float[] values,
int offset,
int size)
Float2FloatMapputAll in interface Float2FloatMapputAll in class AbstractFloat2FloatMapkeys - 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)
Float2FloatMapcontainsKey in interface Float2FloatMapcontainsKey in class AbstractFloat2FloatMapkey - element that is searched forpublic boolean containsValue(float value)
Float2FloatMapcontainsValue in interface Float2FloatMapcontainsValue in class AbstractFloat2FloatMapvalue - element that is searched forpublic float get(float key)
Float2FloatMapget in interface Float2FloatMapkey - the key that is searched forpublic float remove(float key)
Float2FloatMapremove in interface Float2FloatMapkey - the element that should be removedpublic float removeOrDefault(float key,
float defaultValue)
Float2FloatMapremoveOrDefault in interface Float2FloatMapkey - 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,
float value)
Float2FloatMapremove in interface Float2FloatMapkey - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)public boolean replace(float key,
float oldValue,
float newValue)
Float2FloatMapreplace in interface Float2FloatMapreplace in class AbstractFloat2FloatMapkey - the element that should be searched foroldValue - the expected value to be replacednewValue - the value to replace the oldValue with.public float replace(float key,
float value)
Float2FloatMapreplace in interface Float2FloatMapreplace in class AbstractFloat2FloatMapkey - the element that should be searched forvalue - the value to replace with.public void replaceFloats(Float2FloatMap m)
Float2FloatMapreplaceFloats in interface Float2FloatMapreplaceFloats in class AbstractFloat2FloatMapm - elements that should be replaced.public void replaceFloats(FloatFloatUnaryOperator mappingFunction)
Float2FloatMapreplaceFloats in interface Float2FloatMapreplaceFloats in class AbstractFloat2FloatMapmappingFunction - operation to replace all valuespublic float computeFloat(float key,
FloatFloatUnaryOperator mappingFunction)
Float2FloatMapcomputeFloat in interface Float2FloatMapcomputeFloat in class AbstractFloat2FloatMapkey - the key that should be computedmappingFunction - the operator that should generate the valuepublic float computeFloatIfAbsent(float key,
FloatUnaryOperator mappingFunction)
Float2FloatMapcomputeFloatIfAbsent in interface Float2FloatMapcomputeFloatIfAbsent in class AbstractFloat2FloatMapkey - the key that should be computedmappingFunction - the operator that should generate the value if not presentpublic float computeFloatIfPresent(float key,
FloatFloatUnaryOperator mappingFunction)
Float2FloatMapcomputeFloatIfPresent in interface Float2FloatMapcomputeFloatIfPresent in class AbstractFloat2FloatMapkey - the key that should be computedmappingFunction - the operator that should generate the value if presentpublic float supplyFloatIfAbsent(float key,
FloatSupplier valueProvider)
Float2FloatMapsupplyFloatIfAbsent in interface Float2FloatMapsupplyFloatIfAbsent in class AbstractFloat2FloatMapkey - the key that should be computedvalueProvider - the value if not presentpublic float mergeFloat(float key,
float value,
FloatFloatUnaryOperator mappingFunction)
Float2FloatMapmergeFloat in interface Float2FloatMapmergeFloat in class AbstractFloat2FloatMapkey - 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(Float2FloatMap m, FloatFloatUnaryOperator mappingFunction)
Float2FloatMapmergeAllFloat in interface Float2FloatMapmergeAllFloat in class AbstractFloat2FloatMapm - the entries that should be bulk addedmappingFunction - the operator that should generate the new Valuepublic float getOrDefault(float key,
float defaultValue)
Float2FloatMapgetOrDefault in interface Float2FloatMapgetOrDefault in class AbstractFloat2FloatMapkey - the key that is searched fordefaultValue - the value that should be returned if the key is not presentpublic void forEach(FloatFloatConsumer action)
Float2FloatMapforEach in interface Float2FloatMapforEach in class AbstractFloat2FloatMapaction - processor of the values that are iterator overpublic int size()
size in interface java.util.Map<java.lang.Float,java.lang.Float>size in class java.util.AbstractMap<java.lang.Float,java.lang.Float>public Float2FloatMap copy()
Float2FloatMapcopy in interface Float2FloatMapcopy in class AbstractFloat2FloatMappublic FloatSet keySet()
keySet in interface java.util.Map<java.lang.Float,java.lang.Float>keySet in interface Float2FloatMapkeySet in class AbstractFloat2FloatMappublic FloatCollection values()
values in interface java.util.Map<java.lang.Float,java.lang.Float>values in interface Float2FloatMapvalues in class AbstractFloat2FloatMappublic ObjectSet<Float2FloatMap.Entry> float2FloatEntrySet()
Float2FloatMapfloat2FloatEntrySet in interface Float2FloatMap@Deprecated public java.lang.Float get(java.lang.Object key)
get in interface java.util.Map<java.lang.Float,java.lang.Float>get in interface Float2FloatMapget in class AbstractFloat2FloatMap@Deprecated
public java.lang.Float getOrDefault(java.lang.Object key,
java.lang.Float defaultValue)
getOrDefault in interface java.util.Map<java.lang.Float,java.lang.Float>getOrDefault in interface Float2FloatMapgetOrDefault in class AbstractFloat2FloatMap@Deprecated public boolean containsValue(java.lang.Object value)
containsValue in interface java.util.Map<java.lang.Float,java.lang.Float>containsValue in interface Float2FloatMapcontainsValue in class java.util.AbstractMap<java.lang.Float,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.Float,java.lang.Float>containsKey in interface Float2FloatMapcontainsKey in class java.util.AbstractMap<java.lang.Float,java.lang.Float>key - that is searched for.Map.containsKey(Object)@Deprecated
public java.lang.Float put(java.lang.Float key,
java.lang.Float value)
put in interface java.util.Map<java.lang.Float,java.lang.Float>put in interface Float2FloatMapput in class AbstractFloat2FloatMap@Deprecated public java.lang.Float remove(java.lang.Object key)
remove in interface java.util.Map<java.lang.Float,java.lang.Float>remove in interface Float2FloatMapremove in class AbstractFloat2FloatMapkey - the element that should be removedMap.remove(Object)@Deprecated public void clear()
clear in interface java.util.Map<java.lang.Float,java.lang.Float>clear in class java.util.AbstractMap<java.lang.Float,java.lang.Float>@Deprecated
public java.lang.Float putIfAbsent(java.lang.Float key,
java.lang.Float value)
putIfAbsent in interface java.util.Map<java.lang.Float,java.lang.Float>putIfAbsent in interface Float2FloatMap@Deprecated
public boolean remove(java.lang.Object key,
java.lang.Object value)
remove in interface java.util.Map<java.lang.Float,java.lang.Float>remove in interface Float2FloatMapkey - 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.Float oldValue,
java.lang.Float newValue)
replace in interface java.util.Map<java.lang.Float,java.lang.Float>replace in interface Float2FloatMap@Deprecated
public java.lang.Float replace(java.lang.Float key,
java.lang.Float value)
replace in interface java.util.Map<java.lang.Float,java.lang.Float>replace in interface Float2FloatMap@Deprecated public void replaceAll(java.util.function.BiFunction<? super java.lang.Float,? super java.lang.Float,? extends java.lang.Float> mappingFunction)
replaceAll in interface java.util.Map<java.lang.Float,java.lang.Float>replaceAll in interface Float2FloatMap@Deprecated
public java.lang.Float compute(java.lang.Float key,
java.util.function.BiFunction<? super java.lang.Float,? super java.lang.Float,? extends java.lang.Float> mappingFunction)
compute in interface java.util.Map<java.lang.Float,java.lang.Float>compute in interface Float2FloatMap@Deprecated
public java.lang.Float computeIfAbsent(java.lang.Float key,
java.util.function.Function<? super java.lang.Float,? extends java.lang.Float> mappingFunction)
computeIfAbsent in interface java.util.Map<java.lang.Float,java.lang.Float>computeIfAbsent in interface Float2FloatMap@Deprecated
public java.lang.Float computeIfPresent(java.lang.Float key,
java.util.function.BiFunction<? super java.lang.Float,? super java.lang.Float,? extends java.lang.Float> mappingFunction)
computeIfPresent in interface java.util.Map<java.lang.Float,java.lang.Float>computeIfPresent in interface Float2FloatMap@Deprecated
public java.lang.Float merge(java.lang.Float 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.Float,java.lang.Float>merge in interface Float2FloatMap@Deprecated public void forEach(java.util.function.BiConsumer<? super java.lang.Float,? super java.lang.Float> action)
forEach in interface java.util.Map<java.lang.Float,java.lang.Float>forEach in interface Float2FloatMap