public static class Char2DoubleMaps.SynchronizedMap extends AbstractChar2DoubleMap implements Char2DoubleMap
AbstractChar2DoubleMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Char2DoubleMap.Entry, Char2DoubleMap.FastEntrySet| Modifier and Type | Method and Description |
|---|---|
double |
addTo(char key,
double value)
A Helper method to add a primitives together.
|
void |
addToAll(Char2DoubleMap m)
A Helper method to bulk add primitives together.
|
ObjectSet<Char2DoubleMap.Entry> |
char2DoubleEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
void |
clear()
Deprecated.
|
java.lang.Double |
compute(java.lang.Character key,
java.util.function.BiFunction<? super java.lang.Character,? super java.lang.Double,? extends java.lang.Double> mappingFunction)
Deprecated.
|
double |
computeDouble(char key,
CharDoubleUnaryOperator mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
double |
computeDoubleIfAbsent(char key,
Char2DoubleFunction mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
double |
computeDoubleIfPresent(char key,
CharDoubleUnaryOperator mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
java.lang.Double |
computeIfAbsent(java.lang.Character key,
java.util.function.Function<? super java.lang.Character,? extends java.lang.Double> mappingFunction)
Deprecated.
|
java.lang.Double |
computeIfPresent(java.lang.Character key,
java.util.function.BiFunction<? super java.lang.Character,? super java.lang.Double,? extends java.lang.Double> mappingFunction)
Deprecated.
|
boolean |
containsKey(char key)
Type Specific method to reduce boxing/unboxing of values
|
boolean |
containsKey(java.lang.Object key)
Deprecated.
|
boolean |
containsValue(double 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.Double> action)
Deprecated.
|
void |
forEach(CharDoubleConsumer action)
Type Specific forEach method to reduce boxing/unboxing
|
java.lang.Double |
get(java.lang.Object key)
Deprecated.
|
double |
getDefaultReturnValue()
Method to see what the default return value is.
|
double |
getDouble(char key)
A Type Specific get method to reduce boxing/unboxing
|
double |
getOrDefault(char key,
double defaultValue)
A Type Specific getOrDefault method to reduce boxing/unboxing
|
java.lang.Double |
getOrDefault(java.lang.Object key,
java.lang.Double defaultValue)
Deprecated.
|
CharSet |
keySet() |
java.lang.Double |
merge(java.lang.Character key,
java.lang.Double value,
java.util.function.BiFunction<? super java.lang.Double,? super java.lang.Double,? extends java.lang.Double> mappingFunction)
Deprecated.
|
void |
mergeAllDouble(Char2DoubleMap m,
DoubleDoubleUnaryOperator mappingFunction)
A Bulk method for merging Maps.
|
double |
mergeDouble(char key,
double value,
DoubleDoubleUnaryOperator mappingFunction)
A Type Specific merge method to reduce boxing/unboxing
|
java.lang.Double |
put(java.lang.Character key,
java.lang.Double value)
Deprecated.
|
double |
put(char key,
double value)
Type Specific method to reduce boxing/unboxing of values
|
void |
putAll(char[] keys,
double[] 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(Char2DoubleMap m)
Type Specific function for the bull putting of values
|
void |
putAll(java.util.Map<? extends java.lang.Character,? extends java.lang.Double> m) |
void |
putAllIfAbsent(Char2DoubleMap m)
Type-Specific bulk put method put elements into the map if not present.
|
java.lang.Double |
putIfAbsent(java.lang.Character key,
java.lang.Double value)
Deprecated.
|
double |
putIfAbsent(char key,
double value)
Type Specific method to reduce boxing/unboxing of values
|
double |
remChar(char key)
Type Specific remove function to reduce boxing/unboxing
|
double |
remCharOrDefault(char key,
double defaultValue)
Type-Specific Remove function with a default return value if wanted.
|
boolean |
remove(char key,
double value)
Type Specific remove function to reduce boxing/unboxing
|
java.lang.Double |
remove(java.lang.Object key)
Deprecated.
|
boolean |
remove(java.lang.Object key,
java.lang.Object value)
Deprecated.
|
java.lang.Double |
replace(java.lang.Character key,
java.lang.Double value)
Deprecated.
|
boolean |
replace(java.lang.Character key,
java.lang.Double oldValue,
java.lang.Double newValue)
Deprecated.
|
double |
replace(char key,
double value)
A Type Specific replace method to reduce boxing/unboxing replace an existing value
|
boolean |
replace(char key,
double oldValue,
double newValue)
A Type Specific replace method to replace an existing value
|
void |
replaceAll(java.util.function.BiFunction<? super java.lang.Character,? super java.lang.Double,? extends java.lang.Double> mappingFunction)
Deprecated.
|
void |
replaceDoubles(Char2DoubleMap m)
Type-Specific bulk replace method.
|
void |
replaceDoubles(CharDoubleUnaryOperator mappingFunction)
A Type Specific mass replace method to reduce boxing/unboxing
|
AbstractChar2DoubleMap |
setDefaultReturnValue(double v)
Method to define the default return value if a requested key isn't present
|
int |
size() |
DoubleCollection |
values() |
entrySet, equals, hashCodeentrySet, putAllpublic double getDefaultReturnValue()
Char2DoubleMapgetDefaultReturnValue in interface Char2DoubleMapgetDefaultReturnValue in class AbstractChar2DoubleMappublic AbstractChar2DoubleMap setDefaultReturnValue(double v)
Char2DoubleMapsetDefaultReturnValue in interface Char2DoubleMapsetDefaultReturnValue in class AbstractChar2DoubleMapv - value that should be the default return valuepublic double put(char key,
double value)
Char2DoubleMapput in interface Char2DoubleMapkey - the key that should be inserted,value - the value that should be insertedMap.put(Object, Object)public double putIfAbsent(char key,
double value)
Char2DoubleMapputIfAbsent in interface Char2DoubleMapkey - the key that should be inserted,value - the value that should be insertedMap.putIfAbsent(Object, Object)public void putAllIfAbsent(Char2DoubleMap m)
Char2DoubleMapputAllIfAbsent in interface Char2DoubleMapputAllIfAbsent in class AbstractChar2DoubleMapm - elements that should be added if not present.public double addTo(char key,
double value)
Char2DoubleMapaddTo in interface Char2DoubleMapkey - the key that should be inserted,value - the value that should be inserted / addedpublic void addToAll(Char2DoubleMap m)
Char2DoubleMapaddToAll in interface Char2DoubleMapaddToAll in class AbstractChar2DoubleMapm - the values that should be added/insertedpublic void putAll(Char2DoubleMap m)
Char2DoubleMapputAll in interface Char2DoubleMapputAll in class AbstractChar2DoubleMapm - the elements that should be insertedpublic void putAll(java.util.Map<? extends java.lang.Character,? extends java.lang.Double> m)
putAll in interface java.util.Map<java.lang.Character,java.lang.Double>putAll in class AbstractChar2DoubleMappublic void putAll(char[] keys,
double[] values,
int offset,
int size)
Char2DoubleMapputAll in interface Char2DoubleMapputAll in class AbstractChar2DoubleMapkeys - 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)
Char2DoubleMapcontainsKey in interface Char2DoubleMapcontainsKey in class AbstractChar2DoubleMapkey - element that is searched forpublic boolean containsValue(double value)
Char2DoubleMapcontainsValue in interface Char2DoubleMapcontainsValue in class AbstractChar2DoubleMapvalue - element that is searched forpublic double getDouble(char key)
Char2DoubleMapgetDouble in interface Char2DoubleFunctiongetDouble in interface Char2DoubleMapkey - the key that is searched forpublic double remChar(char key)
Char2DoubleMapremChar in interface Char2DoubleMapkey - the element that should be removedpublic double remCharOrDefault(char key,
double defaultValue)
Char2DoubleMapremCharOrDefault in interface Char2DoubleMapkey - 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,
double value)
Char2DoubleMapremove in interface Char2DoubleMapkey - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)public boolean replace(char key,
double oldValue,
double newValue)
Char2DoubleMapreplace in interface Char2DoubleMapreplace in class AbstractChar2DoubleMapkey - the element that should be searched foroldValue - the expected value to be replacednewValue - the value to replace the oldValue with.public double replace(char key,
double value)
Char2DoubleMapreplace in interface Char2DoubleMapreplace in class AbstractChar2DoubleMapkey - the element that should be searched forvalue - the value to replace with.public void replaceDoubles(Char2DoubleMap m)
Char2DoubleMapreplaceDoubles in interface Char2DoubleMapreplaceDoubles in class AbstractChar2DoubleMapm - elements that should be replaced.public void replaceDoubles(CharDoubleUnaryOperator mappingFunction)
Char2DoubleMapreplaceDoubles in interface Char2DoubleMapreplaceDoubles in class AbstractChar2DoubleMapmappingFunction - operation to replace all valuespublic double computeDouble(char key,
CharDoubleUnaryOperator mappingFunction)
Char2DoubleMapcomputeDouble in interface Char2DoubleMapcomputeDouble in class AbstractChar2DoubleMapkey - the key that should be computedmappingFunction - the operator that should generate the valuepublic double computeDoubleIfAbsent(char key,
Char2DoubleFunction mappingFunction)
Char2DoubleMapcomputeDoubleIfAbsent in interface Char2DoubleMapcomputeDoubleIfAbsent in class AbstractChar2DoubleMapkey - the key that should be computedmappingFunction - the operator that should generate the value if not presentpublic double computeDoubleIfPresent(char key,
CharDoubleUnaryOperator mappingFunction)
Char2DoubleMapcomputeDoubleIfPresent in interface Char2DoubleMapcomputeDoubleIfPresent in class AbstractChar2DoubleMapkey - the key that should be computedmappingFunction - the operator that should generate the value if presentpublic double mergeDouble(char key,
double value,
DoubleDoubleUnaryOperator mappingFunction)
Char2DoubleMapmergeDouble in interface Char2DoubleMapmergeDouble in class AbstractChar2DoubleMapkey - the key that should be be searched forvalue - the value that should be merged withmappingFunction - the operator that should generate the new Valuepublic void mergeAllDouble(Char2DoubleMap m, DoubleDoubleUnaryOperator mappingFunction)
Char2DoubleMapmergeAllDouble in interface Char2DoubleMapmergeAllDouble in class AbstractChar2DoubleMapm - the entries that should be bulk addedmappingFunction - the operator that should generate the new Valuepublic double getOrDefault(char key,
double defaultValue)
Char2DoubleMapgetOrDefault in interface Char2DoubleMapgetOrDefault in class AbstractChar2DoubleMapkey - the key that is searched fordefaultValue - the value that should be returned if the key is not presentpublic void forEach(CharDoubleConsumer action)
Char2DoubleMapforEach in interface Char2DoubleMapforEach in class AbstractChar2DoubleMapaction - processor of the values that are iterator overpublic int size()
size in interface java.util.Map<java.lang.Character,java.lang.Double>size in class java.util.AbstractMap<java.lang.Character,java.lang.Double>public CharSet keySet()
keySet in interface java.util.Map<java.lang.Character,java.lang.Double>keySet in interface Char2DoubleMapkeySet in class AbstractChar2DoubleMappublic DoubleCollection values()
values in interface java.util.Map<java.lang.Character,java.lang.Double>values in interface Char2DoubleMapvalues in class AbstractChar2DoubleMappublic ObjectSet<Char2DoubleMap.Entry> char2DoubleEntrySet()
Char2DoubleMapchar2DoubleEntrySet in interface Char2DoubleMap@Deprecated public java.lang.Double get(java.lang.Object key)
get in interface java.util.Map<java.lang.Character,java.lang.Double>get in interface Char2DoubleMapget in class AbstractChar2DoubleMap@Deprecated
public java.lang.Double getOrDefault(java.lang.Object key,
java.lang.Double defaultValue)
getOrDefault in interface java.util.Map<java.lang.Character,java.lang.Double>getOrDefault in interface Char2DoubleMapgetOrDefault in class AbstractChar2DoubleMap@Deprecated public boolean containsValue(java.lang.Object value)
containsValue in interface java.util.Map<java.lang.Character,java.lang.Double>containsValue in interface Char2DoubleMapcontainsValue in class java.util.AbstractMap<java.lang.Character,java.lang.Double>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.Double>containsKey in interface Char2DoubleMapcontainsKey in class java.util.AbstractMap<java.lang.Character,java.lang.Double>key - that is searched for.Map.containsKey(Object)@Deprecated
public java.lang.Double put(java.lang.Character key,
java.lang.Double value)
put in interface java.util.Map<java.lang.Character,java.lang.Double>put in interface Char2DoubleMapput in class java.util.AbstractMap<java.lang.Character,java.lang.Double>@Deprecated public java.lang.Double remove(java.lang.Object key)
remove in interface java.util.Map<java.lang.Character,java.lang.Double>remove in interface Char2DoubleMapremove in class java.util.AbstractMap<java.lang.Character,java.lang.Double>key - the element that should be removedMap.remove(Object)@Deprecated public void clear()
clear in interface java.util.Map<java.lang.Character,java.lang.Double>clear in class java.util.AbstractMap<java.lang.Character,java.lang.Double>@Deprecated
public java.lang.Double putIfAbsent(java.lang.Character key,
java.lang.Double value)
putIfAbsent in interface java.util.Map<java.lang.Character,java.lang.Double>putIfAbsent in interface Char2DoubleMap@Deprecated
public boolean remove(java.lang.Object key,
java.lang.Object value)
remove in interface java.util.Map<java.lang.Character,java.lang.Double>remove in interface Char2DoubleMapkey - 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.Double oldValue,
java.lang.Double newValue)
replace in interface java.util.Map<java.lang.Character,java.lang.Double>replace in interface Char2DoubleMap@Deprecated
public java.lang.Double replace(java.lang.Character key,
java.lang.Double value)
replace in interface java.util.Map<java.lang.Character,java.lang.Double>replace in interface Char2DoubleMap@Deprecated public void replaceAll(java.util.function.BiFunction<? super java.lang.Character,? super java.lang.Double,? extends java.lang.Double> mappingFunction)
replaceAll in interface java.util.Map<java.lang.Character,java.lang.Double>replaceAll in interface Char2DoubleMap@Deprecated
public java.lang.Double compute(java.lang.Character key,
java.util.function.BiFunction<? super java.lang.Character,? super java.lang.Double,? extends java.lang.Double> mappingFunction)
compute in interface java.util.Map<java.lang.Character,java.lang.Double>compute in interface Char2DoubleMap@Deprecated
public java.lang.Double computeIfAbsent(java.lang.Character key,
java.util.function.Function<? super java.lang.Character,? extends java.lang.Double> mappingFunction)
computeIfAbsent in interface java.util.Map<java.lang.Character,java.lang.Double>computeIfAbsent in interface Char2DoubleMap@Deprecated
public java.lang.Double computeIfPresent(java.lang.Character key,
java.util.function.BiFunction<? super java.lang.Character,? super java.lang.Double,? extends java.lang.Double> mappingFunction)
computeIfPresent in interface java.util.Map<java.lang.Character,java.lang.Double>computeIfPresent in interface Char2DoubleMap@Deprecated
public java.lang.Double merge(java.lang.Character key,
java.lang.Double value,
java.util.function.BiFunction<? super java.lang.Double,? super java.lang.Double,? extends java.lang.Double> mappingFunction)
merge in interface java.util.Map<java.lang.Character,java.lang.Double>merge in interface Char2DoubleMap@Deprecated public void forEach(java.util.function.BiConsumer<? super java.lang.Character,? super java.lang.Double> action)
forEach in interface java.util.Map<java.lang.Character,java.lang.Double>forEach in interface Char2DoubleMap