public static class Double2LongMaps.EmptyMap extends AbstractDouble2LongMap
AbstractDouble2LongMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Double2LongMap.Entry, Double2LongMap.FastEntrySet| Constructor and Description |
|---|
EmptyMap() |
| Modifier and Type | Method and Description |
|---|---|
long |
addTo(double key,
long value)
A Helper method to add a primitives together.
|
ObjectSet<Double2LongMap.Entry> |
double2LongEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
long |
getLong(double key)
A Type Specific get method to reduce boxing/unboxing
|
long |
getOrDefault(double key,
long defaultValue)
A Type Specific getOrDefault method to reduce boxing/unboxing
|
DoubleSet |
keySet() |
long |
put(double key,
long value)
Type Specific method to reduce boxing/unboxing of values
|
long |
putIfAbsent(double key,
long value)
Type Specific method to reduce boxing/unboxing of values
|
long |
remDouble(double key)
Type Specific remove function to reduce boxing/unboxing
|
long |
remDoubleOrDefault(double key,
long defaultValue)
Type-Specific Remove function with a default return value if wanted.
|
boolean |
remove(double key,
long value)
Type Specific remove function to reduce boxing/unboxing
|
LongCollection |
values() |
addToAll, computeLong, computeLongIfAbsent, computeLongIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getDefaultReturnValue, getOrDefault, hashCode, mergeAllLong, mergeLong, putAll, putAll, putAll, putAllIfAbsent, replace, replace, replaceLongs, replaceLongs, setDefaultReturnValueclear, containsKey, containsValue, isEmpty, put, remove, size, toStringcompute, computeIfAbsent, computeIfPresent, containsKey, containsValue, forEach, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAllapplyAsLongpublic long put(double key,
long value)
Double2LongMapkey - the key that should be inserted,value - the value that should be insertedMap.put(Object, Object)public long putIfAbsent(double key,
long value)
Double2LongMapkey - the key that should be inserted,value - the value that should be insertedMap.putIfAbsent(Object, Object)public long addTo(double key,
long value)
Double2LongMapkey - the key that should be inserted,value - the value that should be inserted / addedpublic long remDouble(double key)
Double2LongMapkey - the element that should be removedpublic long remDoubleOrDefault(double key,
long defaultValue)
Double2LongMapkey - 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,
long value)
Double2LongMapkey - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)public long getLong(double key)
Double2LongMapkey - the key that is searched forpublic long getOrDefault(double key,
long defaultValue)
Double2LongMapgetOrDefault in interface Double2LongMapgetOrDefault in class AbstractDouble2LongMapkey - 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.Long>keySet in interface Double2LongMapkeySet in class AbstractDouble2LongMappublic LongCollection values()
values in interface java.util.Map<java.lang.Double,java.lang.Long>values in interface Double2LongMapvalues in class AbstractDouble2LongMappublic ObjectSet<Double2LongMap.Entry> double2LongEntrySet()
Double2LongMap