public static class Short2DoubleMaps.SynchronizedMap extends AbstractShort2DoubleMap implements Short2DoubleMap
AbstractShort2DoubleMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Short2DoubleMap.Entry, Short2DoubleMap.FastEntrySet| Modifier and Type | Method and Description |
|---|---|
double |
addTo(short key,
double value)
A Helper method to add a primitives together.
|
void |
addToAll(Short2DoubleMap m)
A Helper method to bulk add primitives together.
|
void |
clear()
Deprecated.
|
java.lang.Double |
compute(java.lang.Short key,
java.util.function.BiFunction<? super java.lang.Short,? super java.lang.Double,? extends java.lang.Double> mappingFunction)
Deprecated.
|
double |
computeDouble(short key,
ShortDoubleUnaryOperator mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
double |
computeDoubleIfAbsent(short key,
Short2DoubleFunction mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
double |
computeDoubleIfPresent(short key,
ShortDoubleUnaryOperator mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
java.lang.Double |
computeIfAbsent(java.lang.Short key,
java.util.function.Function<? super java.lang.Short,? extends java.lang.Double> mappingFunction)
Deprecated.
|
java.lang.Double |
computeIfPresent(java.lang.Short key,
java.util.function.BiFunction<? super java.lang.Short,? super java.lang.Double,? extends java.lang.Double> mappingFunction)
Deprecated.
|
boolean |
containsKey(java.lang.Object key)
Deprecated.
|
boolean |
containsKey(short key)
Type Specific method to reduce boxing/unboxing of values
|
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.Short,? super java.lang.Double> action)
Deprecated.
|
void |
forEach(ShortDoubleConsumer 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(short key)
A Type Specific get method to reduce boxing/unboxing
|
java.lang.Double |
getOrDefault(java.lang.Object key,
java.lang.Double defaultValue)
Deprecated.
|
double |
getOrDefault(short key,
double defaultValue)
A Type Specific getOrDefault method to reduce boxing/unboxing
|
ShortSet |
keySet() |
java.lang.Double |
merge(java.lang.Short 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(Short2DoubleMap m,
DoubleDoubleUnaryOperator mappingFunction)
A Bulk method for merging Maps.
|
double |
mergeDouble(short key,
double value,
DoubleDoubleUnaryOperator mappingFunction)
A Type Specific merge method to reduce boxing/unboxing
|
double |
put(short key,
double value)
Type Specific method to reduce boxing/unboxing of values
|
java.lang.Double |
put(java.lang.Short key,
java.lang.Double value)
Deprecated.
|
void |
putAll(java.util.Map<? extends java.lang.Short,? extends java.lang.Double> m) |
void |
putAll(short[] 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(Short2DoubleMap m)
Type Specific function for the bull putting of values
|
void |
putAllIfAbsent(Short2DoubleMap m)
Type-Specific bulk put method put elements into the map if not present.
|
double |
putIfAbsent(short key,
double value)
Type Specific method to reduce boxing/unboxing of values
|
java.lang.Double |
putIfAbsent(java.lang.Short key,
java.lang.Double value)
Deprecated.
|
java.lang.Double |
remove(java.lang.Object key)
Deprecated.
|
boolean |
remove(java.lang.Object key,
java.lang.Object value)
Deprecated.
|
boolean |
remove(short key,
double value)
Type Specific remove function to reduce boxing/unboxing
|
double |
remShort(short key)
Type Specific remove function to reduce boxing/unboxing
|
double |
remShortOrDefault(short key,
double defaultValue)
Type-Specific Remove function with a default return value if wanted.
|
double |
replace(short key,
double value)
A Type Specific replace method to reduce boxing/unboxing replace an existing value
|
java.lang.Double |
replace(java.lang.Short key,
java.lang.Double value)
Deprecated.
|
boolean |
replace(short key,
double oldValue,
double newValue)
A Type Specific replace method to replace an existing value
|
boolean |
replace(java.lang.Short key,
java.lang.Double oldValue,
java.lang.Double newValue)
Deprecated.
|
void |
replaceAll(java.util.function.BiFunction<? super java.lang.Short,? super java.lang.Double,? extends java.lang.Double> mappingFunction)
Deprecated.
|
void |
replaceDoubles(Short2DoubleMap m)
Type-Specific bulk replace method.
|
void |
replaceDoubles(ShortDoubleUnaryOperator mappingFunction)
A Type Specific mass replace method to reduce boxing/unboxing
|
AbstractShort2DoubleMap |
setDefaultReturnValue(double v)
Method to define the default return value if a requested key isn't present
|
ObjectSet<Short2DoubleMap.Entry> |
short2DoubleEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
int |
size() |
DoubleCollection |
values() |
entrySet, equals, hashCodeentrySet, putAllpublic double getDefaultReturnValue()
Short2DoubleMapgetDefaultReturnValue in interface Short2DoubleMapgetDefaultReturnValue in class AbstractShort2DoubleMappublic AbstractShort2DoubleMap setDefaultReturnValue(double v)
Short2DoubleMapsetDefaultReturnValue in interface Short2DoubleMapsetDefaultReturnValue in class AbstractShort2DoubleMapv - value that should be the default return valuepublic double put(short key,
double value)
Short2DoubleMapput in interface Short2DoubleMapkey - the key that should be inserted,value - the value that should be insertedMap.put(Object, Object)public double putIfAbsent(short key,
double value)
Short2DoubleMapputIfAbsent in interface Short2DoubleMapkey - the key that should be inserted,value - the value that should be insertedMap.putIfAbsent(Object, Object)public void putAllIfAbsent(Short2DoubleMap m)
Short2DoubleMapputAllIfAbsent in interface Short2DoubleMapputAllIfAbsent in class AbstractShort2DoubleMapm - elements that should be added if not present.public double addTo(short key,
double value)
Short2DoubleMapaddTo in interface Short2DoubleMapkey - the key that should be inserted,value - the value that should be inserted / addedpublic void addToAll(Short2DoubleMap m)
Short2DoubleMapaddToAll in interface Short2DoubleMapaddToAll in class AbstractShort2DoubleMapm - the values that should be added/insertedpublic void putAll(Short2DoubleMap m)
Short2DoubleMapputAll in interface Short2DoubleMapputAll in class AbstractShort2DoubleMapm - the elements that should be insertedpublic void putAll(java.util.Map<? extends java.lang.Short,? extends java.lang.Double> m)
putAll in interface java.util.Map<java.lang.Short,java.lang.Double>putAll in class AbstractShort2DoubleMappublic void putAll(short[] keys,
double[] values,
int offset,
int size)
Short2DoubleMapputAll in interface Short2DoubleMapputAll in class AbstractShort2DoubleMapkeys - 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(short key)
Short2DoubleMapcontainsKey in interface Short2DoubleMapcontainsKey in class AbstractShort2DoubleMapkey - element that is searched forpublic boolean containsValue(double value)
Short2DoubleMapcontainsValue in interface Short2DoubleMapcontainsValue in class AbstractShort2DoubleMapvalue - element that is searched forpublic double getDouble(short key)
Short2DoubleMapgetDouble in interface Short2DoubleFunctiongetDouble in interface Short2DoubleMapkey - the key that is searched forpublic double remShort(short key)
Short2DoubleMapremShort in interface Short2DoubleMapkey - the element that should be removedpublic double remShortOrDefault(short key,
double defaultValue)
Short2DoubleMapremShortOrDefault in interface Short2DoubleMapkey - the element that should be removeddefaultValue - the value that should be returned if the entry doesn't existMap.remove(Object, Object)public boolean remove(short key,
double value)
Short2DoubleMapremove in interface Short2DoubleMapkey - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)public boolean replace(short key,
double oldValue,
double newValue)
Short2DoubleMapreplace in interface Short2DoubleMapreplace in class AbstractShort2DoubleMapkey - the element that should be searched foroldValue - the expected value to be replacednewValue - the value to replace the oldValue with.public double replace(short key,
double value)
Short2DoubleMapreplace in interface Short2DoubleMapreplace in class AbstractShort2DoubleMapkey - the element that should be searched forvalue - the value to replace with.public void replaceDoubles(Short2DoubleMap m)
Short2DoubleMapreplaceDoubles in interface Short2DoubleMapreplaceDoubles in class AbstractShort2DoubleMapm - elements that should be replaced.public void replaceDoubles(ShortDoubleUnaryOperator mappingFunction)
Short2DoubleMapreplaceDoubles in interface Short2DoubleMapreplaceDoubles in class AbstractShort2DoubleMapmappingFunction - operation to replace all valuespublic double computeDouble(short key,
ShortDoubleUnaryOperator mappingFunction)
Short2DoubleMapcomputeDouble in interface Short2DoubleMapcomputeDouble in class AbstractShort2DoubleMapkey - the key that should be computedmappingFunction - the operator that should generate the valuepublic double computeDoubleIfAbsent(short key,
Short2DoubleFunction mappingFunction)
Short2DoubleMapcomputeDoubleIfAbsent in interface Short2DoubleMapcomputeDoubleIfAbsent in class AbstractShort2DoubleMapkey - the key that should be computedmappingFunction - the operator that should generate the value if not presentpublic double computeDoubleIfPresent(short key,
ShortDoubleUnaryOperator mappingFunction)
Short2DoubleMapcomputeDoubleIfPresent in interface Short2DoubleMapcomputeDoubleIfPresent in class AbstractShort2DoubleMapkey - the key that should be computedmappingFunction - the operator that should generate the value if presentpublic double mergeDouble(short key,
double value,
DoubleDoubleUnaryOperator mappingFunction)
Short2DoubleMapmergeDouble in interface Short2DoubleMapmergeDouble in class AbstractShort2DoubleMapkey - 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(Short2DoubleMap m, DoubleDoubleUnaryOperator mappingFunction)
Short2DoubleMapmergeAllDouble in interface Short2DoubleMapmergeAllDouble in class AbstractShort2DoubleMapm - the entries that should be bulk addedmappingFunction - the operator that should generate the new Valuepublic double getOrDefault(short key,
double defaultValue)
Short2DoubleMapgetOrDefault in interface Short2DoubleMapgetOrDefault in class AbstractShort2DoubleMapkey - the key that is searched fordefaultValue - the value that should be returned if the key is not presentpublic void forEach(ShortDoubleConsumer action)
Short2DoubleMapforEach in interface Short2DoubleMapforEach in class AbstractShort2DoubleMapaction - processor of the values that are iterator overpublic int size()
size in interface java.util.Map<java.lang.Short,java.lang.Double>size in class java.util.AbstractMap<java.lang.Short,java.lang.Double>public ShortSet keySet()
keySet in interface java.util.Map<java.lang.Short,java.lang.Double>keySet in interface Short2DoubleMapkeySet in class AbstractShort2DoubleMappublic DoubleCollection values()
values in interface java.util.Map<java.lang.Short,java.lang.Double>values in interface Short2DoubleMapvalues in class AbstractShort2DoubleMappublic ObjectSet<Short2DoubleMap.Entry> short2DoubleEntrySet()
Short2DoubleMapshort2DoubleEntrySet in interface Short2DoubleMap@Deprecated public java.lang.Double get(java.lang.Object key)
get in interface java.util.Map<java.lang.Short,java.lang.Double>get in interface Short2DoubleMapget in class AbstractShort2DoubleMap@Deprecated
public java.lang.Double getOrDefault(java.lang.Object key,
java.lang.Double defaultValue)
getOrDefault in interface java.util.Map<java.lang.Short,java.lang.Double>getOrDefault in interface Short2DoubleMapgetOrDefault in class AbstractShort2DoubleMap@Deprecated public boolean containsValue(java.lang.Object value)
containsValue in interface java.util.Map<java.lang.Short,java.lang.Double>containsValue in interface Short2DoubleMapcontainsValue in class java.util.AbstractMap<java.lang.Short,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.Short,java.lang.Double>containsKey in interface Short2DoubleMapcontainsKey in class java.util.AbstractMap<java.lang.Short,java.lang.Double>key - that is searched for.Map.containsKey(Object)@Deprecated
public java.lang.Double put(java.lang.Short key,
java.lang.Double value)
put in interface java.util.Map<java.lang.Short,java.lang.Double>put in interface Short2DoubleMapput in class java.util.AbstractMap<java.lang.Short,java.lang.Double>@Deprecated public java.lang.Double remove(java.lang.Object key)
remove in interface java.util.Map<java.lang.Short,java.lang.Double>remove in interface Short2DoubleMapremove in class java.util.AbstractMap<java.lang.Short,java.lang.Double>key - the element that should be removedMap.remove(Object)@Deprecated public void clear()
clear in interface java.util.Map<java.lang.Short,java.lang.Double>clear in class java.util.AbstractMap<java.lang.Short,java.lang.Double>@Deprecated
public java.lang.Double putIfAbsent(java.lang.Short key,
java.lang.Double value)
putIfAbsent in interface java.util.Map<java.lang.Short,java.lang.Double>putIfAbsent in interface Short2DoubleMap@Deprecated
public boolean remove(java.lang.Object key,
java.lang.Object value)
remove in interface java.util.Map<java.lang.Short,java.lang.Double>remove in interface Short2DoubleMapkey - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)@Deprecated
public boolean replace(java.lang.Short key,
java.lang.Double oldValue,
java.lang.Double newValue)
replace in interface java.util.Map<java.lang.Short,java.lang.Double>replace in interface Short2DoubleMap@Deprecated
public java.lang.Double replace(java.lang.Short key,
java.lang.Double value)
replace in interface java.util.Map<java.lang.Short,java.lang.Double>replace in interface Short2DoubleMap@Deprecated public void replaceAll(java.util.function.BiFunction<? super java.lang.Short,? super java.lang.Double,? extends java.lang.Double> mappingFunction)
replaceAll in interface java.util.Map<java.lang.Short,java.lang.Double>replaceAll in interface Short2DoubleMap@Deprecated
public java.lang.Double compute(java.lang.Short key,
java.util.function.BiFunction<? super java.lang.Short,? super java.lang.Double,? extends java.lang.Double> mappingFunction)
compute in interface java.util.Map<java.lang.Short,java.lang.Double>compute in interface Short2DoubleMap@Deprecated
public java.lang.Double computeIfAbsent(java.lang.Short key,
java.util.function.Function<? super java.lang.Short,? extends java.lang.Double> mappingFunction)
computeIfAbsent in interface java.util.Map<java.lang.Short,java.lang.Double>computeIfAbsent in interface Short2DoubleMap@Deprecated
public java.lang.Double computeIfPresent(java.lang.Short key,
java.util.function.BiFunction<? super java.lang.Short,? super java.lang.Double,? extends java.lang.Double> mappingFunction)
computeIfPresent in interface java.util.Map<java.lang.Short,java.lang.Double>computeIfPresent in interface Short2DoubleMap@Deprecated
public java.lang.Double merge(java.lang.Short 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.Short,java.lang.Double>merge in interface Short2DoubleMap@Deprecated public void forEach(java.util.function.BiConsumer<? super java.lang.Short,? super java.lang.Double> action)
forEach in interface java.util.Map<java.lang.Short,java.lang.Double>forEach in interface Short2DoubleMap