public static class Double2ShortMaps.SynchronizedMap extends AbstractDouble2ShortMap implements Double2ShortMap
AbstractDouble2ShortMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Double2ShortMap.BuilderCache, Double2ShortMap.Entry, Double2ShortMap.FastEntrySet, Double2ShortMap.MapBuilder| Modifier and Type | Method and Description |
|---|---|
short |
addTo(double key,
short value)
A Helper method to add a primitives together.
|
void |
addToAll(Double2ShortMap m)
A Helper method to bulk add primitives together.
|
void |
clear()
Deprecated.
|
java.lang.Short |
compute(java.lang.Double key,
java.util.function.BiFunction<? super java.lang.Double,? super java.lang.Short,? extends java.lang.Short> mappingFunction)
Deprecated.
|
java.lang.Short |
computeIfAbsent(java.lang.Double key,
java.util.function.Function<? super java.lang.Double,? extends java.lang.Short> mappingFunction)
Deprecated.
|
java.lang.Short |
computeIfPresent(java.lang.Double key,
java.util.function.BiFunction<? super java.lang.Double,? super java.lang.Short,? extends java.lang.Short> mappingFunction)
Deprecated.
|
short |
computeShort(double key,
DoubleShortUnaryOperator mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
short |
computeShortIfAbsent(double key,
Double2ShortFunction mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
short |
computeShortIfPresent(double key,
DoubleShortUnaryOperator mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
boolean |
containsKey(double key)
Type Specific method to reduce boxing/unboxing of values
|
boolean |
containsKey(java.lang.Object key)
Deprecated.
|
boolean |
containsValue(java.lang.Object value)
Deprecated.
|
boolean |
containsValue(short value)
Type Specific method to reduce boxing/unboxing of values
|
Double2ShortMap |
copy()
A Function that does a shallow clone of the Map itself.
|
ObjectSet<Double2ShortMap.Entry> |
double2ShortEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
void |
forEach(java.util.function.BiConsumer<? super java.lang.Double,? super java.lang.Short> action)
Deprecated.
|
void |
forEach(DoubleShortConsumer action)
Type Specific forEach method to reduce boxing/unboxing
|
short |
get(double key)
A Type Specific get method to reduce boxing/unboxing
|
java.lang.Short |
get(java.lang.Object key)
Deprecated.
|
short |
getDefaultReturnValue()
Method to see what the default return value is.
|
short |
getOrDefault(double key,
short defaultValue)
A Type Specific getOrDefault method to reduce boxing/unboxing
|
java.lang.Short |
getOrDefault(java.lang.Object key,
java.lang.Short defaultValue)
Deprecated.
|
DoubleSet |
keySet() |
java.lang.Short |
merge(java.lang.Double key,
java.lang.Short value,
java.util.function.BiFunction<? super java.lang.Short,? super java.lang.Short,? extends java.lang.Short> mappingFunction)
Deprecated.
|
void |
mergeAllShort(Double2ShortMap m,
ShortShortUnaryOperator mappingFunction)
A Bulk method for merging Maps.
|
short |
mergeShort(double key,
short value,
ShortShortUnaryOperator mappingFunction)
A Type Specific merge method to reduce boxing/unboxing
|
short |
put(double key,
short value)
Type Specific method to reduce boxing/unboxing of values
|
java.lang.Short |
put(java.lang.Double key,
java.lang.Short value)
Deprecated.
|
void |
putAll(double[] keys,
short[] 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(Double2ShortMap m)
Type Specific function for the bull putting of values
|
void |
putAll(java.util.Map<? extends java.lang.Double,? extends java.lang.Short> m) |
void |
putAllIfAbsent(Double2ShortMap m)
Type-Specific bulk put method put elements into the map if not present.
|
short |
putIfAbsent(double key,
short value)
Type Specific method to reduce boxing/unboxing of values
|
java.lang.Short |
putIfAbsent(java.lang.Double key,
java.lang.Short value)
Deprecated.
|
short |
remove(double key)
Type Specific remove function to reduce boxing/unboxing
|
boolean |
remove(double key,
short value)
Type Specific remove function to reduce boxing/unboxing
|
java.lang.Short |
remove(java.lang.Object key)
Deprecated.
|
boolean |
remove(java.lang.Object key,
java.lang.Object value)
Deprecated.
|
short |
removeOrDefault(double key,
short defaultValue)
Type-Specific Remove function with a default return value if wanted.
|
short |
replace(double key,
short value)
A Type Specific replace method to reduce boxing/unboxing replace an existing value
|
java.lang.Short |
replace(java.lang.Double key,
java.lang.Short value)
Deprecated.
|
boolean |
replace(double key,
short oldValue,
short newValue)
A Type Specific replace method to replace an existing value
|
boolean |
replace(java.lang.Double key,
java.lang.Short oldValue,
java.lang.Short newValue)
Deprecated.
|
void |
replaceAll(java.util.function.BiFunction<? super java.lang.Double,? super java.lang.Short,? extends java.lang.Short> mappingFunction)
Deprecated.
|
void |
replaceShorts(Double2ShortMap m)
Type-Specific bulk replace method.
|
void |
replaceShorts(DoubleShortUnaryOperator mappingFunction)
A Type Specific mass replace method to reduce boxing/unboxing
|
AbstractDouble2ShortMap |
setDefaultReturnValue(short v)
Method to define the default return value if a requested key isn't present
|
int |
size() |
short |
subFrom(double key,
short value)
A Helper method to subtract from primitive from each other.
|
short |
supplyShortIfAbsent(double key,
ShortSupplier valueProvider)
A Supplier based computeIfAbsent function to fill the most used usecase of this function
|
ShortCollection |
values() |
entrySet, equals, hashCode, putAllbuilder, entrySet, putAll, putAll, putAll, synchronize, synchronize, unmodifiablepublic short getDefaultReturnValue()
Double2ShortMapgetDefaultReturnValue in interface Double2ShortMapgetDefaultReturnValue in class AbstractDouble2ShortMappublic AbstractDouble2ShortMap setDefaultReturnValue(short v)
Double2ShortMapsetDefaultReturnValue in interface Double2ShortMapsetDefaultReturnValue in class AbstractDouble2ShortMapv - value that should be the default return valuepublic short put(double key,
short value)
Double2ShortMapput in interface Double2ShortMapkey - the key that should be inserted,value - the value that should be insertedMap.put(Object, Object)public short putIfAbsent(double key,
short value)
Double2ShortMapputIfAbsent in interface Double2ShortMapkey - the key that should be inserted,value - the value that should be insertedMap.putIfAbsent(Object, Object)public void putAllIfAbsent(Double2ShortMap m)
Double2ShortMapputAllIfAbsent in interface Double2ShortMapputAllIfAbsent in class AbstractDouble2ShortMapm - elements that should be added if not present.public short addTo(double key,
short value)
Double2ShortMapaddTo in interface Double2ShortMapkey - the key that should be inserted,value - the value that should be inserted / addedpublic short subFrom(double key,
short value)
Double2ShortMapDouble2ShortMap.getDefaultReturnValue()
If the fence is reached the element will be automaticall removedsubFrom in interface Double2ShortMapkey - that should be subtract fromvalue - that should be subtractpublic void addToAll(Double2ShortMap m)
Double2ShortMapaddToAll in interface Double2ShortMapaddToAll in class AbstractDouble2ShortMapm - the values that should be added/insertedpublic void putAll(Double2ShortMap m)
Double2ShortMapputAll in interface Double2ShortMapputAll in class AbstractDouble2ShortMapm - the elements that should be insertedpublic void putAll(java.util.Map<? extends java.lang.Double,? extends java.lang.Short> m)
putAll in interface java.util.Map<java.lang.Double,java.lang.Short>putAll in class AbstractDouble2ShortMappublic void putAll(double[] keys,
short[] values,
int offset,
int size)
Double2ShortMapputAll in interface Double2ShortMapputAll in class AbstractDouble2ShortMapkeys - 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(double key)
Double2ShortMapcontainsKey in interface Double2ShortMapcontainsKey in class AbstractDouble2ShortMapkey - element that is searched forpublic boolean containsValue(short value)
Double2ShortMapcontainsValue in interface Double2ShortMapcontainsValue in class AbstractDouble2ShortMapvalue - element that is searched forpublic short get(double key)
Double2ShortMapget in interface Double2ShortFunctionget in interface Double2ShortMapkey - the key that is searched forpublic short remove(double key)
Double2ShortMapremove in interface Double2ShortMapkey - the element that should be removedpublic short removeOrDefault(double key,
short defaultValue)
Double2ShortMapremoveOrDefault in interface Double2ShortMapkey - the element that should be removeddefaultValue - the value that should be returned if the entry doesn't existMap.remove(Object, Object)public boolean remove(double key,
short value)
Double2ShortMapremove in interface Double2ShortMapkey - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)public boolean replace(double key,
short oldValue,
short newValue)
Double2ShortMapreplace in interface Double2ShortMapreplace in class AbstractDouble2ShortMapkey - the element that should be searched foroldValue - the expected value to be replacednewValue - the value to replace the oldValue with.public short replace(double key,
short value)
Double2ShortMapreplace in interface Double2ShortMapreplace in class AbstractDouble2ShortMapkey - the element that should be searched forvalue - the value to replace with.public void replaceShorts(Double2ShortMap m)
Double2ShortMapreplaceShorts in interface Double2ShortMapreplaceShorts in class AbstractDouble2ShortMapm - elements that should be replaced.public void replaceShorts(DoubleShortUnaryOperator mappingFunction)
Double2ShortMapreplaceShorts in interface Double2ShortMapreplaceShorts in class AbstractDouble2ShortMapmappingFunction - operation to replace all valuespublic short computeShort(double key,
DoubleShortUnaryOperator mappingFunction)
Double2ShortMapcomputeShort in interface Double2ShortMapcomputeShort in class AbstractDouble2ShortMapkey - the key that should be computedmappingFunction - the operator that should generate the valuepublic short computeShortIfAbsent(double key,
Double2ShortFunction mappingFunction)
Double2ShortMapcomputeShortIfAbsent in interface Double2ShortMapcomputeShortIfAbsent in class AbstractDouble2ShortMapkey - the key that should be computedmappingFunction - the operator that should generate the value if not presentpublic short computeShortIfPresent(double key,
DoubleShortUnaryOperator mappingFunction)
Double2ShortMapcomputeShortIfPresent in interface Double2ShortMapcomputeShortIfPresent in class AbstractDouble2ShortMapkey - the key that should be computedmappingFunction - the operator that should generate the value if presentpublic short supplyShortIfAbsent(double key,
ShortSupplier valueProvider)
Double2ShortMapsupplyShortIfAbsent in interface Double2ShortMapsupplyShortIfAbsent in class AbstractDouble2ShortMapkey - the key that should be computedvalueProvider - the value if not presentpublic short mergeShort(double key,
short value,
ShortShortUnaryOperator mappingFunction)
Double2ShortMapmergeShort in interface Double2ShortMapmergeShort in class AbstractDouble2ShortMapkey - the key that should be be searched forvalue - the value that should be merged withmappingFunction - the operator that should generate the new Valuepublic void mergeAllShort(Double2ShortMap m, ShortShortUnaryOperator mappingFunction)
Double2ShortMapmergeAllShort in interface Double2ShortMapmergeAllShort in class AbstractDouble2ShortMapm - the entries that should be bulk addedmappingFunction - the operator that should generate the new Valuepublic short getOrDefault(double key,
short defaultValue)
Double2ShortMapgetOrDefault in interface Double2ShortMapgetOrDefault in class AbstractDouble2ShortMapkey - the key that is searched fordefaultValue - the value that should be returned if the key is not presentpublic void forEach(DoubleShortConsumer action)
Double2ShortMapforEach in interface Double2ShortMapforEach in class AbstractDouble2ShortMapaction - processor of the values that are iterator overpublic int size()
size in interface java.util.Map<java.lang.Double,java.lang.Short>size in class java.util.AbstractMap<java.lang.Double,java.lang.Short>public Double2ShortMap copy()
Double2ShortMapcopy in interface Double2ShortMapcopy in class AbstractDouble2ShortMappublic DoubleSet keySet()
keySet in interface java.util.Map<java.lang.Double,java.lang.Short>keySet in interface Double2ShortMapkeySet in class AbstractDouble2ShortMappublic ShortCollection values()
values in interface java.util.Map<java.lang.Double,java.lang.Short>values in interface Double2ShortMapvalues in class AbstractDouble2ShortMappublic ObjectSet<Double2ShortMap.Entry> double2ShortEntrySet()
Double2ShortMapdouble2ShortEntrySet in interface Double2ShortMap@Deprecated public java.lang.Short get(java.lang.Object key)
get in interface java.util.Map<java.lang.Double,java.lang.Short>get in interface Double2ShortMapget in class AbstractDouble2ShortMap@Deprecated
public java.lang.Short getOrDefault(java.lang.Object key,
java.lang.Short defaultValue)
getOrDefault in interface java.util.Map<java.lang.Double,java.lang.Short>getOrDefault in interface Double2ShortMapgetOrDefault in class AbstractDouble2ShortMap@Deprecated public boolean containsValue(java.lang.Object value)
containsValue in interface java.util.Map<java.lang.Double,java.lang.Short>containsValue in interface Double2ShortMapcontainsValue in class java.util.AbstractMap<java.lang.Double,java.lang.Short>value - that is searched for.Map.containsValue(Object)@Deprecated public boolean containsKey(java.lang.Object key)
containsKey in interface java.util.Map<java.lang.Double,java.lang.Short>containsKey in interface Double2ShortMapcontainsKey in class java.util.AbstractMap<java.lang.Double,java.lang.Short>key - that is searched for.Map.containsKey(Object)@Deprecated
public java.lang.Short put(java.lang.Double key,
java.lang.Short value)
put in interface java.util.Map<java.lang.Double,java.lang.Short>put in interface Double2ShortMapput in class AbstractDouble2ShortMap@Deprecated public java.lang.Short remove(java.lang.Object key)
remove in interface java.util.Map<java.lang.Double,java.lang.Short>remove in interface Double2ShortMapremove in class AbstractDouble2ShortMapkey - the element that should be removedMap.remove(Object)@Deprecated public void clear()
clear in interface java.util.Map<java.lang.Double,java.lang.Short>clear in class java.util.AbstractMap<java.lang.Double,java.lang.Short>@Deprecated
public java.lang.Short putIfAbsent(java.lang.Double key,
java.lang.Short value)
putIfAbsent in interface java.util.Map<java.lang.Double,java.lang.Short>putIfAbsent in interface Double2ShortMap@Deprecated
public boolean remove(java.lang.Object key,
java.lang.Object value)
remove in interface java.util.Map<java.lang.Double,java.lang.Short>remove in interface Double2ShortMapkey - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)@Deprecated
public boolean replace(java.lang.Double key,
java.lang.Short oldValue,
java.lang.Short newValue)
replace in interface java.util.Map<java.lang.Double,java.lang.Short>replace in interface Double2ShortMap@Deprecated
public java.lang.Short replace(java.lang.Double key,
java.lang.Short value)
replace in interface java.util.Map<java.lang.Double,java.lang.Short>replace in interface Double2ShortMap@Deprecated public void replaceAll(java.util.function.BiFunction<? super java.lang.Double,? super java.lang.Short,? extends java.lang.Short> mappingFunction)
replaceAll in interface java.util.Map<java.lang.Double,java.lang.Short>replaceAll in interface Double2ShortMap@Deprecated
public java.lang.Short compute(java.lang.Double key,
java.util.function.BiFunction<? super java.lang.Double,? super java.lang.Short,? extends java.lang.Short> mappingFunction)
compute in interface java.util.Map<java.lang.Double,java.lang.Short>compute in interface Double2ShortMap@Deprecated
public java.lang.Short computeIfAbsent(java.lang.Double key,
java.util.function.Function<? super java.lang.Double,? extends java.lang.Short> mappingFunction)
computeIfAbsent in interface java.util.Map<java.lang.Double,java.lang.Short>computeIfAbsent in interface Double2ShortMap@Deprecated
public java.lang.Short computeIfPresent(java.lang.Double key,
java.util.function.BiFunction<? super java.lang.Double,? super java.lang.Short,? extends java.lang.Short> mappingFunction)
computeIfPresent in interface java.util.Map<java.lang.Double,java.lang.Short>computeIfPresent in interface Double2ShortMap@Deprecated
public java.lang.Short merge(java.lang.Double key,
java.lang.Short value,
java.util.function.BiFunction<? super java.lang.Short,? super java.lang.Short,? extends java.lang.Short> mappingFunction)
merge in interface java.util.Map<java.lang.Double,java.lang.Short>merge in interface Double2ShortMap@Deprecated public void forEach(java.util.function.BiConsumer<? super java.lang.Double,? super java.lang.Short> action)
forEach in interface java.util.Map<java.lang.Double,java.lang.Short>forEach in interface Double2ShortMap