public static class Long2ShortMaps.UnmodifyableMap extends AbstractLong2ShortMap implements Long2ShortMap
AbstractLong2ShortMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Long2ShortMap.Entry, Long2ShortMap.FastEntrySet| Modifier and Type | Method and Description |
|---|---|
short |
addTo(long key,
short value)
A Helper method to add a primitives together.
|
short |
getOrDefault(long key,
short defaultValue)
A Type Specific getOrDefault method to reduce boxing/unboxing
|
short |
getShort(long key)
A Type Specific get method to reduce boxing/unboxing
|
LongSet |
keySet() |
ObjectSet<Long2ShortMap.Entry> |
long2ShortEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
short |
put(long key,
short value)
Type Specific method to reduce boxing/unboxing of values
|
short |
putIfAbsent(long key,
short value)
Type Specific method to reduce boxing/unboxing of values
|
short |
remLong(long key)
Type Specific remove function to reduce boxing/unboxing
|
short |
remLongOrDefault(long key,
short defaultValue)
Type-Specific Remove function with a default return value if wanted.
|
boolean |
remove(long 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, toStringaddToAll, compute, computeIfAbsent, computeIfPresent, computeShort, computeShortIfAbsent, computeShortIfPresent, containsKey, containsKey, containsValue, containsValue, entrySet, forEach, forEach, get, getDefaultReturnValue, getOrDefault, merge, mergeAllShort, mergeShort, put, putAll, putAll, putAll, putAllIfAbsent, putIfAbsent, remove, remove, replace, replace, replace, replace, replaceAll, replaceShorts, replaceShorts, setDefaultReturnValuepublic short put(long key,
short value)
Long2ShortMapput in interface Long2ShortMapkey - the key that should be inserted,value - the value that should be insertedMap.put(Object, Object)public short putIfAbsent(long key,
short value)
Long2ShortMapputIfAbsent in interface Long2ShortMapkey - the key that should be inserted,value - the value that should be insertedMap.putIfAbsent(Object, Object)public short addTo(long key,
short value)
Long2ShortMapaddTo in interface Long2ShortMapkey - the key that should be inserted,value - the value that should be inserted / addedpublic short remLong(long key)
Long2ShortMapremLong in interface Long2ShortMapkey - the element that should be removedpublic short remLongOrDefault(long key,
short defaultValue)
Long2ShortMapremLongOrDefault in interface Long2ShortMapkey - the element that should be removeddefaultValue - the value that should be returned if the entry doesn't existMap.remove(Object, Object)public boolean remove(long key,
short value)
Long2ShortMapremove in interface Long2ShortMapkey - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)public short getShort(long key)
Long2ShortMapgetShort in interface Long2ShortFunctiongetShort in interface Long2ShortMapkey - the key that is searched forpublic short getOrDefault(long key,
short defaultValue)
Long2ShortMapgetOrDefault in interface Long2ShortMapgetOrDefault in class AbstractLong2ShortMapkey - the key that is searched fordefaultValue - the value that should be returned if the key is not presentpublic LongSet keySet()
keySet in interface java.util.Map<java.lang.Long,java.lang.Short>keySet in interface Long2ShortMapkeySet in class AbstractLong2ShortMappublic ShortCollection values()
values in interface java.util.Map<java.lang.Long,java.lang.Short>values in interface Long2ShortMapvalues in class AbstractLong2ShortMappublic ObjectSet<Long2ShortMap.Entry> long2ShortEntrySet()
Long2ShortMaplong2ShortEntrySet in interface Long2ShortMap