public static class Char2FloatMaps.SynchronizedMap extends AbstractChar2FloatMap implements Char2FloatMap
AbstractChar2FloatMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Char2FloatMap.Entry, Char2FloatMap.FastEntrySet| Modifier and Type | Method and Description |
|---|---|
float |
addTo(char key,
float value)
A Helper method to add a primitives together.
|
void |
addToAll(Char2FloatMap m)
A Helper method to bulk add primitives together.
|
ObjectSet<Char2FloatMap.Entry> |
char2FloatEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
void |
clear()
Deprecated.
|
java.lang.Float |
compute(java.lang.Character key,
java.util.function.BiFunction<? super java.lang.Character,? super java.lang.Float,? extends java.lang.Float> mappingFunction)
Deprecated.
|
float |
computeFloat(char key,
CharFloatUnaryOperator mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
float |
computeFloatIfAbsent(char key,
Char2FloatFunction mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
float |
computeFloatIfPresent(char key,
CharFloatUnaryOperator mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
java.lang.Float |
computeIfAbsent(java.lang.Character key,
java.util.function.Function<? super java.lang.Character,? extends java.lang.Float> mappingFunction)
Deprecated.
|
java.lang.Float |
computeIfPresent(java.lang.Character key,
java.util.function.BiFunction<? super java.lang.Character,? super java.lang.Float,? extends java.lang.Float> mappingFunction)
Deprecated.
|
boolean |
containsKey(char 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.
|
void |
forEach(java.util.function.BiConsumer<? super java.lang.Character,? super java.lang.Float> action)
Deprecated.
|
void |
forEach(CharFloatConsumer action)
Type Specific forEach 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 |
getFloat(char key)
A Type Specific get method to reduce boxing/unboxing
|
float |
getOrDefault(char 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.
|
CharSet |
keySet() |
java.lang.Float |
merge(java.lang.Character 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(Char2FloatMap m,
FloatFloatUnaryOperator mappingFunction)
A Bulk method for merging Maps.
|
float |
mergeFloat(char key,
float value,
FloatFloatUnaryOperator mappingFunction)
A Type Specific merge method to reduce boxing/unboxing
|
java.lang.Float |
put(java.lang.Character key,
java.lang.Float value)
Deprecated.
|
float |
put(char key,
float value)
Type Specific method to reduce boxing/unboxing of values
|
void |
putAll(char[] 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(Char2FloatMap m)
Type Specific function for the bull putting of values
|
void |
putAll(java.util.Map<? extends java.lang.Character,? extends java.lang.Float> m) |
void |
putAllIfAbsent(Char2FloatMap m)
Type-Specific bulk put method put elements into the map if not present.
|
java.lang.Float |
putIfAbsent(java.lang.Character key,
java.lang.Float value)
Deprecated.
|
float |
putIfAbsent(char key,
float value)
Type Specific method to reduce boxing/unboxing of values
|
float |
remChar(char key)
Type Specific remove function to reduce boxing/unboxing
|
float |
remCharOrDefault(char key,
float defaultValue)
Type-Specific Remove function with a default return value if wanted.
|
boolean |
remove(char 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.
|
java.lang.Float |
replace(java.lang.Character key,
java.lang.Float value)
Deprecated.
|
boolean |
replace(java.lang.Character key,
java.lang.Float oldValue,
java.lang.Float newValue)
Deprecated.
|
float |
replace(char key,
float value)
A Type Specific replace method to reduce boxing/unboxing replace an existing value
|
boolean |
replace(char key,
float oldValue,
float newValue)
A Type Specific replace method to replace an existing value
|
void |
replaceAll(java.util.function.BiFunction<? super java.lang.Character,? super java.lang.Float,? extends java.lang.Float> mappingFunction)
Deprecated.
|
void |
replaceFloats(Char2FloatMap m)
Type-Specific bulk replace method.
|
void |
replaceFloats(CharFloatUnaryOperator mappingFunction)
A Type Specific mass replace method to reduce boxing/unboxing
|
AbstractChar2FloatMap |
setDefaultReturnValue(float v)
Method to define the default return value if a requested key isn't present
|
int |
size() |
FloatCollection |
values() |
entrySet, equals, hashCodeentrySet, putAllpublic float getDefaultReturnValue()
Char2FloatMapgetDefaultReturnValue in interface Char2FloatMapgetDefaultReturnValue in class AbstractChar2FloatMappublic AbstractChar2FloatMap setDefaultReturnValue(float v)
Char2FloatMapsetDefaultReturnValue in interface Char2FloatMapsetDefaultReturnValue in class AbstractChar2FloatMapv - value that should be the default return valuepublic float put(char key,
float value)
Char2FloatMapput in interface Char2FloatMapkey - the key that should be inserted,value - the value that should be insertedMap.put(Object, Object)public float putIfAbsent(char key,
float value)
Char2FloatMapputIfAbsent in interface Char2FloatMapkey - the key that should be inserted,value - the value that should be insertedMap.putIfAbsent(Object, Object)public void putAllIfAbsent(Char2FloatMap m)
Char2FloatMapputAllIfAbsent in interface Char2FloatMapputAllIfAbsent in class AbstractChar2FloatMapm - elements that should be added if not present.public float addTo(char key,
float value)
Char2FloatMapaddTo in interface Char2FloatMapkey - the key that should be inserted,value - the value that should be inserted / addedpublic void addToAll(Char2FloatMap m)
Char2FloatMapaddToAll in interface Char2FloatMapaddToAll in class AbstractChar2FloatMapm - the values that should be added/insertedpublic void putAll(Char2FloatMap m)
Char2FloatMapputAll in interface Char2FloatMapputAll in class AbstractChar2FloatMapm - the elements that should be insertedpublic void putAll(java.util.Map<? extends java.lang.Character,? extends java.lang.Float> m)
putAll in interface java.util.Map<java.lang.Character,java.lang.Float>putAll in class AbstractChar2FloatMappublic void putAll(char[] keys,
float[] values,
int offset,
int size)
Char2FloatMapputAll in interface Char2FloatMapputAll in class AbstractChar2FloatMapkeys - 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(char key)
Char2FloatMapcontainsKey in interface Char2FloatMapcontainsKey in class AbstractChar2FloatMapkey - element that is searched forpublic boolean containsValue(float value)
Char2FloatMapcontainsValue in interface Char2FloatMapcontainsValue in class AbstractChar2FloatMapvalue - element that is searched forpublic float getFloat(char key)
Char2FloatMapgetFloat in interface Char2FloatFunctiongetFloat in interface Char2FloatMapkey - the key that is searched forpublic float remChar(char key)
Char2FloatMapremChar in interface Char2FloatMapkey - the element that should be removedpublic float remCharOrDefault(char key,
float defaultValue)
Char2FloatMapremCharOrDefault in interface Char2FloatMapkey - the element that should be removeddefaultValue - the value that should be returned if the entry doesn't existMap.remove(Object, Object)public boolean remove(char key,
float value)
Char2FloatMapremove in interface Char2FloatMapkey - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)public boolean replace(char key,
float oldValue,
float newValue)
Char2FloatMapreplace in interface Char2FloatMapreplace in class AbstractChar2FloatMapkey - the element that should be searched foroldValue - the expected value to be replacednewValue - the value to replace the oldValue with.public float replace(char key,
float value)
Char2FloatMapreplace in interface Char2FloatMapreplace in class AbstractChar2FloatMapkey - the element that should be searched forvalue - the value to replace with.public void replaceFloats(Char2FloatMap m)
Char2FloatMapreplaceFloats in interface Char2FloatMapreplaceFloats in class AbstractChar2FloatMapm - elements that should be replaced.public void replaceFloats(CharFloatUnaryOperator mappingFunction)
Char2FloatMapreplaceFloats in interface Char2FloatMapreplaceFloats in class AbstractChar2FloatMapmappingFunction - operation to replace all valuespublic float computeFloat(char key,
CharFloatUnaryOperator mappingFunction)
Char2FloatMapcomputeFloat in interface Char2FloatMapcomputeFloat in class AbstractChar2FloatMapkey - the key that should be computedmappingFunction - the operator that should generate the valuepublic float computeFloatIfAbsent(char key,
Char2FloatFunction mappingFunction)
Char2FloatMapcomputeFloatIfAbsent in interface Char2FloatMapcomputeFloatIfAbsent in class AbstractChar2FloatMapkey - the key that should be computedmappingFunction - the operator that should generate the value if not presentpublic float computeFloatIfPresent(char key,
CharFloatUnaryOperator mappingFunction)
Char2FloatMapcomputeFloatIfPresent in interface Char2FloatMapcomputeFloatIfPresent in class AbstractChar2FloatMapkey - the key that should be computedmappingFunction - the operator that should generate the value if presentpublic float mergeFloat(char key,
float value,
FloatFloatUnaryOperator mappingFunction)
Char2FloatMapmergeFloat in interface Char2FloatMapmergeFloat in class AbstractChar2FloatMapkey - 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(Char2FloatMap m, FloatFloatUnaryOperator mappingFunction)
Char2FloatMapmergeAllFloat in interface Char2FloatMapmergeAllFloat in class AbstractChar2FloatMapm - the entries that should be bulk addedmappingFunction - the operator that should generate the new Valuepublic float getOrDefault(char key,
float defaultValue)
Char2FloatMapgetOrDefault in interface Char2FloatMapgetOrDefault in class AbstractChar2FloatMapkey - the key that is searched fordefaultValue - the value that should be returned if the key is not presentpublic void forEach(CharFloatConsumer action)
Char2FloatMapforEach in interface Char2FloatMapforEach in class AbstractChar2FloatMapaction - processor of the values that are iterator overpublic int size()
size in interface java.util.Map<java.lang.Character,java.lang.Float>size in class java.util.AbstractMap<java.lang.Character,java.lang.Float>public CharSet keySet()
keySet in interface java.util.Map<java.lang.Character,java.lang.Float>keySet in interface Char2FloatMapkeySet in class AbstractChar2FloatMappublic FloatCollection values()
values in interface java.util.Map<java.lang.Character,java.lang.Float>values in interface Char2FloatMapvalues in class AbstractChar2FloatMappublic ObjectSet<Char2FloatMap.Entry> char2FloatEntrySet()
Char2FloatMapchar2FloatEntrySet in interface Char2FloatMap@Deprecated public java.lang.Float get(java.lang.Object key)
get in interface java.util.Map<java.lang.Character,java.lang.Float>get in interface Char2FloatMapget in class AbstractChar2FloatMap@Deprecated
public java.lang.Float getOrDefault(java.lang.Object key,
java.lang.Float defaultValue)
getOrDefault in interface java.util.Map<java.lang.Character,java.lang.Float>getOrDefault in interface Char2FloatMapgetOrDefault in class AbstractChar2FloatMap@Deprecated public boolean containsValue(java.lang.Object value)
containsValue in interface java.util.Map<java.lang.Character,java.lang.Float>containsValue in interface Char2FloatMapcontainsValue in class java.util.AbstractMap<java.lang.Character,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.Character,java.lang.Float>containsKey in interface Char2FloatMapcontainsKey in class java.util.AbstractMap<java.lang.Character,java.lang.Float>key - that is searched for.Map.containsKey(Object)@Deprecated
public java.lang.Float put(java.lang.Character key,
java.lang.Float value)
put in interface java.util.Map<java.lang.Character,java.lang.Float>put in interface Char2FloatMapput in class java.util.AbstractMap<java.lang.Character,java.lang.Float>@Deprecated public java.lang.Float remove(java.lang.Object key)
remove in interface java.util.Map<java.lang.Character,java.lang.Float>remove in interface Char2FloatMapremove in class java.util.AbstractMap<java.lang.Character,java.lang.Float>key - the element that should be removedMap.remove(Object)@Deprecated public void clear()
clear in interface java.util.Map<java.lang.Character,java.lang.Float>clear in class java.util.AbstractMap<java.lang.Character,java.lang.Float>@Deprecated
public java.lang.Float putIfAbsent(java.lang.Character key,
java.lang.Float value)
putIfAbsent in interface java.util.Map<java.lang.Character,java.lang.Float>putIfAbsent in interface Char2FloatMap@Deprecated
public boolean remove(java.lang.Object key,
java.lang.Object value)
remove in interface java.util.Map<java.lang.Character,java.lang.Float>remove in interface Char2FloatMapkey - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)@Deprecated
public boolean replace(java.lang.Character key,
java.lang.Float oldValue,
java.lang.Float newValue)
replace in interface java.util.Map<java.lang.Character,java.lang.Float>replace in interface Char2FloatMap@Deprecated
public java.lang.Float replace(java.lang.Character key,
java.lang.Float value)
replace in interface java.util.Map<java.lang.Character,java.lang.Float>replace in interface Char2FloatMap@Deprecated public void replaceAll(java.util.function.BiFunction<? super java.lang.Character,? super java.lang.Float,? extends java.lang.Float> mappingFunction)
replaceAll in interface java.util.Map<java.lang.Character,java.lang.Float>replaceAll in interface Char2FloatMap@Deprecated
public java.lang.Float compute(java.lang.Character key,
java.util.function.BiFunction<? super java.lang.Character,? super java.lang.Float,? extends java.lang.Float> mappingFunction)
compute in interface java.util.Map<java.lang.Character,java.lang.Float>compute in interface Char2FloatMap@Deprecated
public java.lang.Float computeIfAbsent(java.lang.Character key,
java.util.function.Function<? super java.lang.Character,? extends java.lang.Float> mappingFunction)
computeIfAbsent in interface java.util.Map<java.lang.Character,java.lang.Float>computeIfAbsent in interface Char2FloatMap@Deprecated
public java.lang.Float computeIfPresent(java.lang.Character key,
java.util.function.BiFunction<? super java.lang.Character,? super java.lang.Float,? extends java.lang.Float> mappingFunction)
computeIfPresent in interface java.util.Map<java.lang.Character,java.lang.Float>computeIfPresent in interface Char2FloatMap@Deprecated
public java.lang.Float merge(java.lang.Character 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.Character,java.lang.Float>merge in interface Char2FloatMap@Deprecated public void forEach(java.util.function.BiConsumer<? super java.lang.Character,? super java.lang.Float> action)
forEach in interface java.util.Map<java.lang.Character,java.lang.Float>forEach in interface Char2FloatMap