T - the type of elements maintained by this Collectionpublic static class Object2ShortMaps.UnmodifyableMap<T> extends AbstractObject2ShortMap<T> implements Object2ShortMap<T>
AbstractObject2ShortMap.BasicEntry<T>java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Object2ShortMap.Entry<T>, Object2ShortMap.FastEntrySet<T>| Modifier and Type | Method and Description |
|---|---|
short |
addTo(T key,
short value)
A Helper method to add a primitives together.
|
short |
getOrDefault(T key,
short defaultValue)
A Type Specific getOrDefault method to reduce boxing/unboxing
|
short |
getShort(T key)
A Type Specific get method to reduce boxing/unboxing
|
ObjectSet<T> |
keySet() |
ObjectSet<Object2ShortMap.Entry<T>> |
object2ShortEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
short |
put(T key,
short value)
Type Specific method to reduce boxing/unboxing of values
|
short |
putIfAbsent(T key,
short value)
Type Specific method to reduce boxing/unboxing of values
|
short |
rem(T key)
Type Specific remove function to reduce boxing/unboxing
|
short |
remOrDefault(T key,
short defaultValue)
Type-Specific Remove function with a default return value if wanted.
|
boolean |
remove(T 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, containsValue, isEmpty, put, remove, size, toStringaddToAll, compute, computeIfAbsent, computeIfPresent, computeShort, computeShortIfAbsent, computeShortIfPresent, 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(T key, short value)
Object2ShortMapput in interface Object2ShortMap<T>key - the key that should be inserted,value - the value that should be insertedMap.put(Object, Object)public short putIfAbsent(T key, short value)
Object2ShortMapputIfAbsent in interface Object2ShortMap<T>key - the key that should be inserted,value - the value that should be insertedMap.putIfAbsent(Object, Object)public short addTo(T key, short value)
Object2ShortMapaddTo in interface Object2ShortMap<T>key - the key that should be inserted,value - the value that should be inserted / addedpublic short rem(T key)
Object2ShortMaprem in interface Object2ShortMap<T>key - the element that should be removedpublic short remOrDefault(T key, short defaultValue)
Object2ShortMapremOrDefault in interface Object2ShortMap<T>key - the element that should be removeddefaultValue - the value that should be returned if the entry doesn't existMap.remove(Object, Object)public boolean remove(T key, short value)
Object2ShortMapremove in interface Object2ShortMap<T>key - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)public short getShort(T key)
Object2ShortMapgetShort in interface Object2ShortFunction<T>getShort in interface Object2ShortMap<T>key - the key that is searched forpublic short getOrDefault(T key, short defaultValue)
Object2ShortMapgetOrDefault in interface Object2ShortMap<T>key - the key that is searched fordefaultValue - the value that should be returned if the key is not presentpublic ObjectSet<T> keySet()
keySet in interface java.util.Map<T,java.lang.Short>keySet in interface Object2ShortMap<T>keySet in class AbstractObject2ShortMap<T>public ShortCollection values()
values in interface java.util.Map<T,java.lang.Short>values in interface Object2ShortMap<T>values in class AbstractObject2ShortMap<T>public ObjectSet<Object2ShortMap.Entry<T>> object2ShortEntrySet()
Object2ShortMapobject2ShortEntrySet in interface Object2ShortMap<T>