public static class Int2ShortMaps.EmptyMap extends AbstractInt2ShortMap
AbstractInt2ShortMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Int2ShortMap.Entry, Int2ShortMap.FastEntrySet| Constructor and Description |
|---|
EmptyMap() |
| Modifier and Type | Method and Description |
|---|---|
short |
addTo(int key,
short value)
A Helper method to add a primitives together.
|
short |
getOrDefault(int key,
short defaultValue)
A Type Specific getOrDefault method to reduce boxing/unboxing
|
short |
getShort(int key)
A Type Specific get method to reduce boxing/unboxing
|
ObjectSet<Int2ShortMap.Entry> |
int2ShortEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
IntSet |
keySet() |
short |
put(int key,
short value)
Type Specific method to reduce boxing/unboxing of values
|
short |
putIfAbsent(int key,
short value)
Type Specific method to reduce boxing/unboxing of values
|
short |
remInt(int key)
Type Specific remove function to reduce boxing/unboxing
|
short |
remIntOrDefault(int key,
short defaultValue)
Type-Specific Remove function with a default return value if wanted.
|
boolean |
remove(int key,
short value)
Type Specific remove function to reduce boxing/unboxing
|
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(int key,
short value)
Int2ShortMapkey - the key that should be inserted,value - the value that should be insertedMap.put(Object, Object)public short putIfAbsent(int key,
short value)
Int2ShortMapkey - the key that should be inserted,value - the value that should be insertedMap.putIfAbsent(Object, Object)public short addTo(int key,
short value)
Int2ShortMapkey - the key that should be inserted,value - the value that should be inserted / addedpublic short remInt(int key)
Int2ShortMapkey - the element that should be removedpublic short remIntOrDefault(int key,
short defaultValue)
Int2ShortMapkey - the element that should be removeddefaultValue - the value that should be returned if the entry doesn't existMap.remove(Object, Object)public boolean remove(int key,
short value)
Int2ShortMapkey - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)public short getShort(int key)
Int2ShortMapkey - the key that is searched forpublic short getOrDefault(int key,
short defaultValue)
Int2ShortMapgetOrDefault in interface Int2ShortMapgetOrDefault in class AbstractInt2ShortMapkey - the key that is searched fordefaultValue - the value that should be returned if the key is not presentpublic IntSet keySet()
keySet in interface java.util.Map<java.lang.Integer,java.lang.Short>keySet in interface Int2ShortMapkeySet in class AbstractInt2ShortMappublic ShortCollection values()
values in interface java.util.Map<java.lang.Integer,java.lang.Short>values in interface Int2ShortMapvalues in class AbstractInt2ShortMappublic ObjectSet<Int2ShortMap.Entry> int2ShortEntrySet()
Int2ShortMap