public static class Byte2DoubleMaps.EmptyMap extends AbstractByte2DoubleMap
AbstractByte2DoubleMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Byte2DoubleMap.Entry, Byte2DoubleMap.FastEntrySet| Constructor and Description |
|---|
EmptyMap() |
| Modifier and Type | Method and Description |
|---|---|
double |
addTo(byte key,
double value)
A Helper method to add a primitives together.
|
ObjectSet<Byte2DoubleMap.Entry> |
byte2DoubleEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
double |
getDouble(byte key)
A Type Specific get method to reduce boxing/unboxing
|
double |
getOrDefault(byte key,
double defaultValue)
A Type Specific getOrDefault method to reduce boxing/unboxing
|
ByteSet |
keySet() |
double |
put(byte key,
double value)
Type Specific method to reduce boxing/unboxing of values
|
double |
putIfAbsent(byte key,
double value)
Type Specific method to reduce boxing/unboxing of values
|
double |
remByte(byte key)
Type Specific remove function to reduce boxing/unboxing
|
double |
remByteOrDefault(byte key,
double defaultValue)
Type-Specific Remove function with a default return value if wanted.
|
boolean |
remove(byte key,
double value)
Type Specific remove function to reduce boxing/unboxing
|
DoubleCollection |
values() |
addToAll, computeDouble, computeDoubleIfAbsent, computeDoubleIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getDefaultReturnValue, getOrDefault, hashCode, mergeAllDouble, mergeDouble, putAll, putAll, putAll, putAllIfAbsent, replace, replace, replaceDoubles, replaceDoubles, setDefaultReturnValueclear, containsKey, containsValue, isEmpty, put, remove, size, toStringcompute, computeIfAbsent, computeIfPresent, containsKey, containsValue, forEach, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAllpublic double put(byte key,
double value)
Byte2DoubleMapkey - the key that should be inserted,value - the value that should be insertedMap.put(Object, Object)public double putIfAbsent(byte key,
double value)
Byte2DoubleMapkey - the key that should be inserted,value - the value that should be insertedMap.putIfAbsent(Object, Object)public double addTo(byte key,
double value)
Byte2DoubleMapkey - the key that should be inserted,value - the value that should be inserted / addedpublic double remByte(byte key)
Byte2DoubleMapkey - the element that should be removedpublic double remByteOrDefault(byte key,
double defaultValue)
Byte2DoubleMapkey - the element that should be removeddefaultValue - the value that should be returned if the entry doesn't existMap.remove(Object, Object)public boolean remove(byte key,
double value)
Byte2DoubleMapkey - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)public double getDouble(byte key)
Byte2DoubleMapkey - the key that is searched forpublic double getOrDefault(byte key,
double defaultValue)
Byte2DoubleMapgetOrDefault in interface Byte2DoubleMapgetOrDefault in class AbstractByte2DoubleMapkey - the key that is searched fordefaultValue - the value that should be returned if the key is not presentpublic ByteSet keySet()
keySet in interface java.util.Map<java.lang.Byte,java.lang.Double>keySet in interface Byte2DoubleMapkeySet in class AbstractByte2DoubleMappublic DoubleCollection values()
values in interface java.util.Map<java.lang.Byte,java.lang.Double>values in interface Byte2DoubleMapvalues in class AbstractByte2DoubleMappublic ObjectSet<Byte2DoubleMap.Entry> byte2DoubleEntrySet()
Byte2DoubleMap