public abstract class AbstractFloat2FloatMap extends java.util.AbstractMap<java.lang.Float,java.lang.Float> implements Float2FloatMap
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractFloat2FloatMap.BasicEntry
A Simple Type Specific Entry class to reduce boxing/unboxing
|
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Float2FloatMap.BuilderCache, Float2FloatMap.Entry, Float2FloatMap.FastEntrySet, Float2FloatMap.MapBuilder| Constructor and Description |
|---|
AbstractFloat2FloatMap() |
| Modifier and Type | Method and Description |
|---|---|
void |
addToAll(Float2FloatMap m)
A Helper method to bulk add primitives together.
|
float |
computeFloat(float key,
FloatFloatUnaryOperator mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
float |
computeFloatIfAbsent(float key,
Float2FloatFunction 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
|
boolean |
containsKey(float key)
Type Specific method to reduce boxing/unboxing of values
|
boolean |
containsValue(float value)
Type Specific method to reduce boxing/unboxing of values
|
Float2FloatMap |
copy()
A Function that does a shallow clone of the Map itself.
|
ObjectSet<java.util.Map.Entry<java.lang.Float,java.lang.Float>> |
entrySet() |
boolean |
equals(java.lang.Object o) |
void |
forEach(FloatFloatConsumer action)
Type Specific forEach method to reduce boxing/unboxing
|
java.lang.Float |
get(java.lang.Object key) |
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) |
int |
hashCode() |
FloatSet |
keySet() |
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
|
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(java.lang.Float[] keys,
java.lang.Float[] values,
int offset,
int size)
Type Specific Object 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.
|
java.lang.Float |
remove(java.lang.Object key) |
float |
replace(float key,
float value)
A Type Specific replace method to reduce boxing/unboxing replace an existing value
|
boolean |
replace(float key,
float oldValue,
float newValue)
A Type Specific replace method to replace an existing value
|
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
|
float |
supplyFloatIfAbsent(float key,
FloatSupplier valueProvider)
A Supplier based computeIfAbsent function to fill the most used usecase of this function
|
FloatCollection |
values() |
clear, containsKey, containsValue, isEmpty, size, toStringaddTo, builder, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, float2FloatEntrySet, forEach, get, merge, put, putAll, putAll, putIfAbsent, putIfAbsent, remove, remove, remove, removeOrDefault, replace, replace, replaceAll, subFrom, synchronize, synchronize, unmodifiablepublic float getDefaultReturnValue()
Float2FloatMapgetDefaultReturnValue in interface Float2FloatMappublic AbstractFloat2FloatMap setDefaultReturnValue(float v)
Float2FloatMapsetDefaultReturnValue in interface Float2FloatMapv - value that should be the default return valuepublic Float2FloatMap copy()
Float2FloatMapcopy in interface Float2FloatMap@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 java.util.AbstractMap<java.lang.Float,java.lang.Float>public void addToAll(Float2FloatMap m)
Float2FloatMapaddToAll in interface Float2FloatMapm - the values that should be added/insertedpublic void putAll(Float2FloatMap m)
Float2FloatMapputAll in interface Float2FloatMapm - 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 java.util.AbstractMap<java.lang.Float,java.lang.Float>public void putAll(float[] keys,
float[] values,
int offset,
int size)
Float2FloatMapputAll in interface Float2FloatMapkeys - 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 void putAll(java.lang.Float[] keys,
java.lang.Float[] values,
int offset,
int size)
Float2FloatMapputAll in interface Float2FloatMapkeys - 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 void putAllIfAbsent(Float2FloatMap m)
Float2FloatMapputAllIfAbsent in interface Float2FloatMapm - elements that should be added if not present.public boolean containsKey(float key)
Float2FloatMapcontainsKey in interface Float2FloatMapkey - element that is searched forpublic boolean containsValue(float value)
Float2FloatMapcontainsValue in interface Float2FloatMapvalue - element that is searched forpublic boolean replace(float key,
float oldValue,
float newValue)
Float2FloatMapreplace in interface Float2FloatMapkey - 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 Float2FloatMapkey - the element that should be searched forvalue - the value to replace with.public void replaceFloats(Float2FloatMap m)
Float2FloatMapreplaceFloats in interface Float2FloatMapm - elements that should be replaced.public void replaceFloats(FloatFloatUnaryOperator mappingFunction)
Float2FloatMapreplaceFloats in interface Float2FloatMapmappingFunction - operation to replace all valuespublic float computeFloat(float key,
FloatFloatUnaryOperator mappingFunction)
Float2FloatMapcomputeFloat in interface Float2FloatMapkey - the key that should be computedmappingFunction - the operator that should generate the valuepublic float computeFloatIfAbsent(float key,
Float2FloatFunction mappingFunction)
Float2FloatMapcomputeFloatIfAbsent in interface Float2FloatMapkey - the key that should be computedmappingFunction - the operator that should generate the value if not presentpublic float supplyFloatIfAbsent(float key,
FloatSupplier valueProvider)
Float2FloatMapsupplyFloatIfAbsent in interface Float2FloatMapkey - the key that should be computedvalueProvider - the value if not presentpublic float computeFloatIfPresent(float key,
FloatFloatUnaryOperator mappingFunction)
Float2FloatMapcomputeFloatIfPresent in interface Float2FloatMapkey - the key that should be computedmappingFunction - the operator that should generate the value if presentpublic float mergeFloat(float key,
float value,
FloatFloatUnaryOperator mappingFunction)
Float2FloatMapmergeFloat in interface Float2FloatMapkey - 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 Float2FloatMapm - the entries that should be bulk addedmappingFunction - the operator that should generate the new Valuepublic 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 java.util.AbstractMap<java.lang.Float,java.lang.Float>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 Float2FloatMappublic float getOrDefault(float key,
float defaultValue)
Float2FloatMapgetOrDefault in interface Float2FloatMapkey - the key that is searched fordefaultValue - the value that should be returned if the key is not presentpublic 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 java.util.AbstractMap<java.lang.Float,java.lang.Float>key - the element that should be removedMap.remove(Object)public void forEach(FloatFloatConsumer action)
Float2FloatMapforEach in interface Float2FloatMapaction - processor of the values that are iterator overpublic FloatSet keySet()
keySet in interface java.util.Map<java.lang.Float,java.lang.Float>keySet in interface Float2FloatMapkeySet in class java.util.AbstractMap<java.lang.Float,java.lang.Float>public FloatCollection values()
values in interface java.util.Map<java.lang.Float,java.lang.Float>values in interface Float2FloatMapvalues in class java.util.AbstractMap<java.lang.Float,java.lang.Float>public ObjectSet<java.util.Map.Entry<java.lang.Float,java.lang.Float>> entrySet()
entrySet in interface java.util.Map<java.lang.Float,java.lang.Float>entrySet in interface Float2FloatMapentrySet in class java.util.AbstractMap<java.lang.Float,java.lang.Float>public boolean equals(java.lang.Object o)
equals in interface java.util.Map<java.lang.Float,java.lang.Float>equals in class java.util.AbstractMap<java.lang.Float,java.lang.Float>public int hashCode()
hashCode in interface java.util.Map<java.lang.Float,java.lang.Float>hashCode in class java.util.AbstractMap<java.lang.Float,java.lang.Float>