public static class Short2ShortMaps.EmptyMap extends AbstractShort2ShortMap
AbstractShort2ShortMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Short2ShortMap.Entry, Short2ShortMap.FastEntrySet| Constructor and Description |
|---|
EmptyMap() |
| Modifier and Type | Method and Description |
|---|---|
short |
addTo(short key,
short value)
A Helper method to add a primitives together.
|
short |
getOrDefault(short key,
short defaultValue)
A Type Specific getOrDefault method to reduce boxing/unboxing
|
short |
getShort(short key)
A Type Specific get method to reduce boxing/unboxing
|
ShortSet |
keySet() |
short |
put(short key,
short value)
Type Specific method to reduce boxing/unboxing of values
|
short |
putIfAbsent(short key,
short value)
Type Specific method to reduce boxing/unboxing of values
|
boolean |
remove(short key,
short value)
Type Specific remove function to reduce boxing/unboxing
|
short |
remShort(short key)
Type Specific remove function to reduce boxing/unboxing
|
short |
remShortOrDefault(short key,
short defaultValue)
Type-Specific Remove function with a default return value if wanted.
|
ObjectSet<Short2ShortMap.Entry> |
short2ShortEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
ShortCollection |
values() |
addToAll, computeShort, computeShortIfAbsent, computeShortIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getDefaultReturnValue, getOrDefault, hashCode, mergeAllShort, mergeShort, putAll, putAll, putAll, putAllIfAbsent, replace, replace, replaceShorts, replaceShorts, setDefaultReturnValueclear, containsKey, containsValue, isEmpty, put, remove, size, toStringcompute, computeIfAbsent, computeIfPresent, containsKey, containsValue, forEach, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAllpublic short put(short key,
short value)
Short2ShortMapkey - the key that should be inserted,value - the value that should be insertedMap.put(Object, Object)public short putIfAbsent(short key,
short value)
Short2ShortMapkey - the key that should be inserted,value - the value that should be insertedMap.putIfAbsent(Object, Object)public short addTo(short key,
short value)
Short2ShortMapkey - the key that should be inserted,value - the value that should be inserted / addedpublic short remShort(short key)
Short2ShortMapkey - the element that should be removedpublic short remShortOrDefault(short key,
short defaultValue)
Short2ShortMapkey - 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,
short value)
Short2ShortMapkey - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)public short getShort(short key)
Short2ShortMapkey - the key that is searched forpublic short getOrDefault(short key,
short defaultValue)
Short2ShortMapgetOrDefault in interface Short2ShortMapgetOrDefault in class AbstractShort2ShortMapkey - 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.Short>keySet in interface Short2ShortMapkeySet in class AbstractShort2ShortMappublic ShortCollection values()
values in interface java.util.Map<java.lang.Short,java.lang.Short>values in interface Short2ShortMapvalues in class AbstractShort2ShortMappublic ObjectSet<Short2ShortMap.Entry> short2ShortEntrySet()
Short2ShortMap