public abstract class AbstractDouble2ShortMap extends java.util.AbstractMap<java.lang.Double,java.lang.Short> implements Double2ShortMap
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractDouble2ShortMap.BasicEntry
A Simple Type Specific Entry class to reduce boxing/unboxing
|
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Double2ShortMap.BuilderCache, Double2ShortMap.Entry, Double2ShortMap.FastEntrySet, Double2ShortMap.MapBuilder| Constructor and Description |
|---|
AbstractDouble2ShortMap() |
| Modifier and Type | Method and Description |
|---|---|
void |
addToAll(Double2ShortMap m)
A Helper method to bulk add primitives together.
|
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 |
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<java.util.Map.Entry<java.lang.Double,java.lang.Short>> |
entrySet() |
boolean |
equals(java.lang.Object o) |
void |
forEach(DoubleShortConsumer action)
Type Specific forEach method to reduce boxing/unboxing
|
java.lang.Short |
get(java.lang.Object key) |
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) |
int |
hashCode() |
DoubleSet |
keySet() |
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
|
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(java.lang.Double[] keys,
java.lang.Short[] values,
int offset,
int size)
Type Specific Object 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.
|
java.lang.Short |
remove(java.lang.Object key) |
short |
replace(double key,
short value)
A Type Specific replace method to reduce boxing/unboxing replace an existing value
|
boolean |
replace(double key,
short oldValue,
short newValue)
A Type Specific replace method to replace an existing value
|
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
|
short |
supplyShortIfAbsent(double key,
ShortSupplier valueProvider)
A Supplier based computeIfAbsent function to fill the most used usecase of this function
|
ShortCollection |
values() |
clear, containsKey, containsValue, isEmpty, size, toStringaddTo, builder, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, double2ShortEntrySet, forEach, get, merge, put, putAll, putAll, putIfAbsent, putIfAbsent, remove, remove, remove, removeOrDefault, replace, replace, replaceAll, subFrom, synchronize, synchronize, unmodifiablepublic short getDefaultReturnValue()
Double2ShortMapgetDefaultReturnValue in interface Double2ShortMappublic AbstractDouble2ShortMap setDefaultReturnValue(short v)
Double2ShortMapsetDefaultReturnValue in interface Double2ShortMapv - value that should be the default return valuepublic Double2ShortMap copy()
Double2ShortMapcopy in interface Double2ShortMap@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 java.util.AbstractMap<java.lang.Double,java.lang.Short>public void addToAll(Double2ShortMap m)
Double2ShortMapaddToAll in interface Double2ShortMapm - the values that should be added/insertedpublic void putAll(Double2ShortMap m)
Double2ShortMapputAll in interface Double2ShortMapm - 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 java.util.AbstractMap<java.lang.Double,java.lang.Short>public void putAll(double[] keys,
short[] values,
int offset,
int size)
Double2ShortMapputAll in interface Double2ShortMapkeys - 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 putAll(java.lang.Double[] keys,
java.lang.Short[] values,
int offset,
int size)
Double2ShortMapputAll in interface Double2ShortMapkeys - 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(Double2ShortMap m)
Double2ShortMapputAllIfAbsent in interface Double2ShortMapm - elements that should be added if not present.public boolean containsKey(double key)
Double2ShortMapcontainsKey in interface Double2ShortMapkey - element that is searched forpublic boolean containsValue(short value)
Double2ShortMapcontainsValue in interface Double2ShortMapvalue - element that is searched forpublic boolean replace(double key,
short oldValue,
short newValue)
Double2ShortMapreplace in interface Double2ShortMapkey - 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 Double2ShortMapkey - the element that should be searched forvalue - the value to replace with.public void replaceShorts(Double2ShortMap m)
Double2ShortMapreplaceShorts in interface Double2ShortMapm - elements that should be replaced.public void replaceShorts(DoubleShortUnaryOperator mappingFunction)
Double2ShortMapreplaceShorts in interface Double2ShortMapmappingFunction - operation to replace all valuespublic short computeShort(double key,
DoubleShortUnaryOperator mappingFunction)
Double2ShortMapcomputeShort in interface Double2ShortMapkey - the key that should be computedmappingFunction - the operator that should generate the valuepublic short computeShortIfAbsent(double key,
Double2ShortFunction mappingFunction)
Double2ShortMapcomputeShortIfAbsent in interface Double2ShortMapkey - the key that should be computedmappingFunction - the operator that should generate the value if not presentpublic short supplyShortIfAbsent(double key,
ShortSupplier valueProvider)
Double2ShortMapsupplyShortIfAbsent in interface Double2ShortMapkey - the key that should be computedvalueProvider - the value if not presentpublic short computeShortIfPresent(double key,
DoubleShortUnaryOperator mappingFunction)
Double2ShortMapcomputeShortIfPresent in interface Double2ShortMapkey - the key that should be computedmappingFunction - the operator that should generate the value if presentpublic short mergeShort(double key,
short value,
ShortShortUnaryOperator mappingFunction)
Double2ShortMapmergeShort in interface Double2ShortMapkey - 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 Double2ShortMapm - the entries that should be bulk addedmappingFunction - the operator that should generate the new Valuepublic 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 java.util.AbstractMap<java.lang.Double,java.lang.Short>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 Double2ShortMappublic short getOrDefault(double key,
short defaultValue)
Double2ShortMapgetOrDefault in interface Double2ShortMapkey - the key that is searched fordefaultValue - the value that should be returned if the key is not presentpublic 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 java.util.AbstractMap<java.lang.Double,java.lang.Short>key - the element that should be removedMap.remove(Object)public void forEach(DoubleShortConsumer action)
Double2ShortMapforEach in interface Double2ShortMapaction - processor of the values that are iterator overpublic DoubleSet keySet()
keySet in interface java.util.Map<java.lang.Double,java.lang.Short>keySet in interface Double2ShortMapkeySet in class java.util.AbstractMap<java.lang.Double,java.lang.Short>public ShortCollection values()
values in interface java.util.Map<java.lang.Double,java.lang.Short>values in interface Double2ShortMapvalues in class java.util.AbstractMap<java.lang.Double,java.lang.Short>public ObjectSet<java.util.Map.Entry<java.lang.Double,java.lang.Short>> entrySet()
entrySet in interface java.util.Map<java.lang.Double,java.lang.Short>entrySet in interface Double2ShortMapentrySet in class java.util.AbstractMap<java.lang.Double,java.lang.Short>public boolean equals(java.lang.Object o)
equals in interface java.util.Map<java.lang.Double,java.lang.Short>equals in class java.util.AbstractMap<java.lang.Double,java.lang.Short>public int hashCode()
hashCode in interface java.util.Map<java.lang.Double,java.lang.Short>hashCode in class java.util.AbstractMap<java.lang.Double,java.lang.Short>