public static class Short2IntMaps.EmptyMap extends AbstractShort2IntMap
AbstractShort2IntMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Short2IntMap.Entry, Short2IntMap.FastEntrySet| Constructor and Description |
|---|
EmptyMap() |
| Modifier and Type | Method and Description |
|---|---|
int |
addTo(short key,
int value)
A Helper method to add a primitives together.
|
int |
getInt(short key)
A Type Specific get method to reduce boxing/unboxing
|
int |
getOrDefault(short key,
int defaultValue)
A Type Specific getOrDefault method to reduce boxing/unboxing
|
ShortSet |
keySet() |
int |
put(short key,
int value)
Type Specific method to reduce boxing/unboxing of values
|
int |
putIfAbsent(short key,
int value)
Type Specific method to reduce boxing/unboxing of values
|
boolean |
remove(short key,
int value)
Type Specific remove function to reduce boxing/unboxing
|
int |
remShort(short key)
Type Specific remove function to reduce boxing/unboxing
|
int |
remShortOrDefault(short key,
int defaultValue)
Type-Specific Remove function with a default return value if wanted.
|
ObjectSet<Short2IntMap.Entry> |
short2IntEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
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, replaceAllpublic int put(short key,
int value)
Short2IntMapkey - the key that should be inserted,value - the value that should be insertedMap.put(Object, Object)public int putIfAbsent(short key,
int value)
Short2IntMapkey - the key that should be inserted,value - the value that should be insertedMap.putIfAbsent(Object, Object)public int addTo(short key,
int value)
Short2IntMapkey - the key that should be inserted,value - the value that should be inserted / addedpublic int remShort(short key)
Short2IntMapkey - the element that should be removedpublic int remShortOrDefault(short key,
int defaultValue)
Short2IntMapkey - the element that should be removeddefaultValue - the value that should be returned if the entry doesn't existMap.remove(Object, Object)public boolean remove(short key,
int value)
Short2IntMapkey - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)public int getInt(short key)
Short2IntMapkey - the key that is searched forpublic int getOrDefault(short key,
int defaultValue)
Short2IntMapgetOrDefault in interface Short2IntMapgetOrDefault in class AbstractShort2IntMapkey - the key that is searched fordefaultValue - the value that should be returned if the key is not presentpublic ShortSet keySet()
keySet in interface java.util.Map<java.lang.Short,java.lang.Integer>keySet in interface Short2IntMapkeySet in class AbstractShort2IntMappublic IntCollection values()
values in interface java.util.Map<java.lang.Short,java.lang.Integer>values in interface Short2IntMapvalues in class AbstractShort2IntMappublic ObjectSet<Short2IntMap.Entry> short2IntEntrySet()
Short2IntMap