public static class Double2ShortMaps.SingletonMap extends AbstractDouble2ShortMap
AbstractDouble2ShortMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Double2ShortMap.Entry, Double2ShortMap.FastEntrySet| Modifier and Type | Method and Description |
|---|---|
short |
addTo(double key,
short value)
A Helper method to add a primitives together.
|
ObjectSet<Double2ShortMap.Entry> |
double2ShortEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
short |
getOrDefault(double key,
short defaultValue)
A Type Specific getOrDefault method to reduce boxing/unboxing
|
short |
getShort(double key)
A Type Specific get method to reduce boxing/unboxing
|
DoubleSet |
keySet() |
short |
put(double key,
short value)
Type Specific method to reduce boxing/unboxing of values
|
short |
putIfAbsent(double key,
short value)
Type Specific method to reduce boxing/unboxing of values
|
short |
remDouble(double key)
Type Specific remove function to reduce boxing/unboxing
|
short |
remDoubleOrDefault(double key,
short defaultValue)
Type-Specific Remove function with a default return value if wanted.
|
boolean |
remove(double key,
short value)
Type Specific remove function to reduce boxing/unboxing
|
ShortCollection |
values() |
addToAll, computeShort, computeShortIfAbsent, computeShortIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getDefaultReturnValue, getOrDefault, hashCode, mergeAllShort, mergeShort, putAll, putAll, putAll, putAllIfAbsent, replace, replace, replaceShorts, replaceShorts, setDefaultReturnValueclear, containsKey, containsValue, isEmpty, put, remove, size, toStringcompute, computeIfAbsent, computeIfPresent, containsKey, containsValue, forEach, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAllpublic short put(double key,
short value)
Double2ShortMapkey - the key that should be inserted,value - the value that should be insertedMap.put(Object, Object)public short putIfAbsent(double key,
short value)
Double2ShortMapkey - the key that should be inserted,value - the value that should be insertedMap.putIfAbsent(Object, Object)public short addTo(double key,
short value)
Double2ShortMapkey - the key that should be inserted,value - the value that should be inserted / addedpublic short remDouble(double key)
Double2ShortMapkey - the element that should be removedpublic short remDoubleOrDefault(double key,
short defaultValue)
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)
Double2ShortMapkey - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)public short getShort(double key)
Double2ShortMapkey - the key that is searched forpublic 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 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()
Double2ShortMap