public abstract class AbstractBoolean2FloatMap extends java.util.AbstractMap<java.lang.Boolean,java.lang.Float> implements Boolean2FloatMap
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractBoolean2FloatMap.BasicEntry
A Simple Type Specific Entry class to reduce boxing/unboxing
|
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Boolean2FloatMap.Entry, Boolean2FloatMap.FastEntrySet| Constructor and Description |
|---|
AbstractBoolean2FloatMap() |
| Modifier and Type | Method and Description |
|---|---|
void |
addToAll(Boolean2FloatMap m)
A Helper method to bulk add primitives together.
|
float |
computeFloat(boolean key,
BooleanFloatUnaryOperator mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
float |
computeFloatIfAbsent(boolean key,
Boolean2FloatFunction mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
float |
computeFloatIfPresent(boolean key,
BooleanFloatUnaryOperator mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
boolean |
containsKey(boolean key)
Type Specific method to reduce boxing/unboxing of values
|
boolean |
containsValue(float value)
Type Specific method to reduce boxing/unboxing of values
|
ObjectSet<java.util.Map.Entry<java.lang.Boolean,java.lang.Float>> |
entrySet() |
boolean |
equals(java.lang.Object o) |
void |
forEach(BooleanFloatConsumer 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(boolean 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() |
BooleanSet |
keySet() |
void |
mergeAllFloat(Boolean2FloatMap m,
FloatFloatUnaryOperator mappingFunction)
A Bulk method for merging Maps.
|
float |
mergeFloat(boolean key,
float value,
FloatFloatUnaryOperator mappingFunction)
A Type Specific merge method to reduce boxing/unboxing
|
void |
putAll(boolean[] 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(Boolean2FloatMap m)
Type Specific function for the bull putting of values
|
void |
putAll(java.util.Map<? extends java.lang.Boolean,? extends java.lang.Float> m) |
void |
putAllIfAbsent(Boolean2FloatMap m)
Type-Specific bulk put method put elements into the map if not present.
|
float |
replace(boolean key,
float value)
A Type Specific replace method to reduce boxing/unboxing replace an existing value
|
boolean |
replace(boolean key,
float oldValue,
float newValue)
A Type Specific replace method to replace an existing value
|
void |
replaceFloats(Boolean2FloatMap m)
Type-Specific bulk replace method.
|
void |
replaceFloats(BooleanFloatUnaryOperator mappingFunction)
A Type Specific mass replace method to reduce boxing/unboxing
|
AbstractBoolean2FloatMap |
setDefaultReturnValue(float v)
Method to define the default return value if a requested key isn't present
|
FloatCollection |
values() |
clear, containsKey, containsValue, isEmpty, put, remove, size, toStringaddTo, boolean2FloatEntrySet, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, forEach, getFloat, merge, put, put, putAll, putIfAbsent, putIfAbsent, remBoolean, remBooleanOrDefault, remove, remove, remove, replace, replace, replaceAllpublic float getDefaultReturnValue()
Boolean2FloatMapgetDefaultReturnValue in interface Boolean2FloatMappublic AbstractBoolean2FloatMap setDefaultReturnValue(float v)
Boolean2FloatMapsetDefaultReturnValue in interface Boolean2FloatMapv - value that should be the default return valuepublic void addToAll(Boolean2FloatMap m)
Boolean2FloatMapaddToAll in interface Boolean2FloatMapm - the values that should be added/insertedpublic void putAll(Boolean2FloatMap m)
Boolean2FloatMapputAll in interface Boolean2FloatMapm - the elements that should be insertedpublic void putAll(java.util.Map<? extends java.lang.Boolean,? extends java.lang.Float> m)
putAll in interface java.util.Map<java.lang.Boolean,java.lang.Float>putAll in class java.util.AbstractMap<java.lang.Boolean,java.lang.Float>public void putAll(boolean[] keys,
float[] values,
int offset,
int size)
Boolean2FloatMapputAll in interface Boolean2FloatMapkeys - 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(Boolean2FloatMap m)
Boolean2FloatMapputAllIfAbsent in interface Boolean2FloatMapm - elements that should be added if not present.public boolean containsKey(boolean key)
Boolean2FloatMapcontainsKey in interface Boolean2FloatMapkey - element that is searched forpublic boolean containsValue(float value)
Boolean2FloatMapcontainsValue in interface Boolean2FloatMapvalue - element that is searched forpublic boolean replace(boolean key,
float oldValue,
float newValue)
Boolean2FloatMapreplace in interface Boolean2FloatMapkey - the element that should be searched foroldValue - the expected value to be replacednewValue - the value to replace the oldValue with.public float replace(boolean key,
float value)
Boolean2FloatMapreplace in interface Boolean2FloatMapkey - the element that should be searched forvalue - the value to replace with.public void replaceFloats(Boolean2FloatMap m)
Boolean2FloatMapreplaceFloats in interface Boolean2FloatMapm - elements that should be replaced.public void replaceFloats(BooleanFloatUnaryOperator mappingFunction)
Boolean2FloatMapreplaceFloats in interface Boolean2FloatMapmappingFunction - operation to replace all valuespublic float computeFloat(boolean key,
BooleanFloatUnaryOperator mappingFunction)
Boolean2FloatMapcomputeFloat in interface Boolean2FloatMapkey - the key that should be computedmappingFunction - the operator that should generate the valuepublic float computeFloatIfAbsent(boolean key,
Boolean2FloatFunction mappingFunction)
Boolean2FloatMapcomputeFloatIfAbsent in interface Boolean2FloatMapkey - the key that should be computedmappingFunction - the operator that should generate the value if not presentpublic float computeFloatIfPresent(boolean key,
BooleanFloatUnaryOperator mappingFunction)
Boolean2FloatMapcomputeFloatIfPresent in interface Boolean2FloatMapkey - the key that should be computedmappingFunction - the operator that should generate the value if presentpublic float mergeFloat(boolean key,
float value,
FloatFloatUnaryOperator mappingFunction)
Boolean2FloatMapmergeFloat in interface Boolean2FloatMapkey - 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(Boolean2FloatMap m, FloatFloatUnaryOperator mappingFunction)
Boolean2FloatMapmergeAllFloat in interface Boolean2FloatMapm - 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.Boolean,java.lang.Float>get in interface Boolean2FloatMapget in class java.util.AbstractMap<java.lang.Boolean,java.lang.Float>public java.lang.Float getOrDefault(java.lang.Object key,
java.lang.Float defaultValue)
getOrDefault in interface java.util.Map<java.lang.Boolean,java.lang.Float>getOrDefault in interface Boolean2FloatMappublic float getOrDefault(boolean key,
float defaultValue)
Boolean2FloatMapgetOrDefault in interface Boolean2FloatMapkey - the key that is searched fordefaultValue - the value that should be returned if the key is not presentpublic void forEach(BooleanFloatConsumer action)
Boolean2FloatMapforEach in interface Boolean2FloatMapaction - processor of the values that are iterator overpublic BooleanSet keySet()
keySet in interface java.util.Map<java.lang.Boolean,java.lang.Float>keySet in interface Boolean2FloatMapkeySet in class java.util.AbstractMap<java.lang.Boolean,java.lang.Float>public FloatCollection values()
values in interface java.util.Map<java.lang.Boolean,java.lang.Float>values in interface Boolean2FloatMapvalues in class java.util.AbstractMap<java.lang.Boolean,java.lang.Float>public ObjectSet<java.util.Map.Entry<java.lang.Boolean,java.lang.Float>> entrySet()
entrySet in interface java.util.Map<java.lang.Boolean,java.lang.Float>entrySet in interface Boolean2FloatMapentrySet in class java.util.AbstractMap<java.lang.Boolean,java.lang.Float>public boolean equals(java.lang.Object o)
equals in interface java.util.Map<java.lang.Boolean,java.lang.Float>equals in class java.util.AbstractMap<java.lang.Boolean,java.lang.Float>public int hashCode()
hashCode in interface java.util.Map<java.lang.Boolean,java.lang.Float>hashCode in class java.util.AbstractMap<java.lang.Boolean,java.lang.Float>