public static class Double2IntMaps.EmptyMap extends AbstractDouble2IntMap
AbstractDouble2IntMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Double2IntMap.Entry, Double2IntMap.FastEntrySet| Constructor and Description |
|---|
EmptyMap() |
| Modifier and Type | Method and Description |
|---|---|
int |
addTo(double key,
int value)
A Helper method to add a primitives together.
|
ObjectSet<Double2IntMap.Entry> |
double2IntEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
int |
getInt(double key)
A Type Specific get method to reduce boxing/unboxing
|
int |
getOrDefault(double key,
int defaultValue)
A Type Specific getOrDefault method to reduce boxing/unboxing
|
DoubleSet |
keySet() |
int |
put(double key,
int value)
Type Specific method to reduce boxing/unboxing of values
|
int |
putIfAbsent(double key,
int value)
Type Specific method to reduce boxing/unboxing of values
|
int |
remDouble(double key)
Type Specific remove function to reduce boxing/unboxing
|
int |
remDoubleOrDefault(double key,
int defaultValue)
Type-Specific Remove function with a default return value if wanted.
|
boolean |
remove(double key,
int value)
Type Specific remove function to reduce boxing/unboxing
|
IntCollection |
values() |
addToAll, computeInt, computeIntIfAbsent, computeIntIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getDefaultReturnValue, getOrDefault, hashCode, mergeAllInt, mergeInt, putAll, putAll, putAll, putAllIfAbsent, replace, replace, replaceInts, replaceInts, setDefaultReturnValueclear, containsKey, containsValue, isEmpty, put, remove, size, toStringcompute, computeIfAbsent, computeIfPresent, containsKey, containsValue, forEach, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAllapplyAsIntpublic int put(double key,
int value)
Double2IntMapkey - the key that should be inserted,value - the value that should be insertedMap.put(Object, Object)public int putIfAbsent(double key,
int value)
Double2IntMapkey - the key that should be inserted,value - the value that should be insertedMap.putIfAbsent(Object, Object)public int addTo(double key,
int value)
Double2IntMapkey - the key that should be inserted,value - the value that should be inserted / addedpublic int remDouble(double key)
Double2IntMapkey - the element that should be removedpublic int remDoubleOrDefault(double key,
int defaultValue)
Double2IntMapkey - 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,
int value)
Double2IntMapkey - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)public int getInt(double key)
Double2IntMapkey - the key that is searched forpublic int getOrDefault(double key,
int defaultValue)
Double2IntMapgetOrDefault in interface Double2IntMapgetOrDefault in class AbstractDouble2IntMapkey - 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.Integer>keySet in interface Double2IntMapkeySet in class AbstractDouble2IntMappublic IntCollection values()
values in interface java.util.Map<java.lang.Double,java.lang.Integer>values in interface Double2IntMapvalues in class AbstractDouble2IntMappublic ObjectSet<Double2IntMap.Entry> double2IntEntrySet()
Double2IntMap