public static class Double2ByteMaps.EmptyMap extends AbstractDouble2ByteMap
AbstractDouble2ByteMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Double2ByteMap.Entry, Double2ByteMap.FastEntrySet| Constructor and Description |
|---|
EmptyMap() |
| Modifier and Type | Method and Description |
|---|---|
byte |
addTo(double key,
byte value)
A Helper method to add a primitives together.
|
ObjectSet<Double2ByteMap.Entry> |
double2ByteEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
byte |
getByte(double key)
A Type Specific get method to reduce boxing/unboxing
|
byte |
getOrDefault(double key,
byte defaultValue)
A Type Specific getOrDefault method to reduce boxing/unboxing
|
DoubleSet |
keySet() |
byte |
put(double key,
byte value)
Type Specific method to reduce boxing/unboxing of values
|
byte |
putIfAbsent(double key,
byte value)
Type Specific method to reduce boxing/unboxing of values
|
byte |
remDouble(double key)
Type Specific remove function to reduce boxing/unboxing
|
byte |
remDoubleOrDefault(double key,
byte defaultValue)
Type-Specific Remove function with a default return value if wanted.
|
boolean |
remove(double key,
byte value)
Type Specific remove function to reduce boxing/unboxing
|
ByteCollection |
values() |
addToAll, computeByte, computeByteIfAbsent, computeByteIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getDefaultReturnValue, getOrDefault, hashCode, mergeAllByte, mergeByte, putAll, putAll, putAll, putAllIfAbsent, replace, replace, replaceBytes, replaceBytes, setDefaultReturnValueclear, containsKey, containsValue, isEmpty, put, remove, size, toStringcompute, computeIfAbsent, computeIfPresent, containsKey, containsValue, forEach, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAllpublic byte put(double key,
byte value)
Double2ByteMapkey - the key that should be inserted,value - the value that should be insertedMap.put(Object, Object)public byte putIfAbsent(double key,
byte value)
Double2ByteMapkey - the key that should be inserted,value - the value that should be insertedMap.putIfAbsent(Object, Object)public byte addTo(double key,
byte value)
Double2ByteMapkey - the key that should be inserted,value - the value that should be inserted / addedpublic byte remDouble(double key)
Double2ByteMapkey - the element that should be removedpublic byte remDoubleOrDefault(double key,
byte defaultValue)
Double2ByteMapkey - 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,
byte value)
Double2ByteMapkey - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)public byte getByte(double key)
Double2ByteMapkey - the key that is searched forpublic byte getOrDefault(double key,
byte defaultValue)
Double2ByteMapgetOrDefault in interface Double2ByteMapgetOrDefault in class AbstractDouble2ByteMapkey - 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.Byte>keySet in interface Double2ByteMapkeySet in class AbstractDouble2ByteMappublic ByteCollection values()
values in interface java.util.Map<java.lang.Double,java.lang.Byte>values in interface Double2ByteMapvalues in class AbstractDouble2ByteMappublic ObjectSet<Double2ByteMap.Entry> double2ByteEntrySet()
Double2ByteMap