public static class Short2ByteMaps.UnmodifyableMap extends AbstractShort2ByteMap implements Short2ByteMap
AbstractShort2ByteMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Short2ByteMap.Entry, Short2ByteMap.FastEntrySet| Modifier and Type | Method and Description |
|---|---|
byte |
addTo(short key,
byte value)
A Helper method to add a primitives together.
|
byte |
getByte(short key)
A Type Specific get method to reduce boxing/unboxing
|
byte |
getOrDefault(short key,
byte defaultValue)
A Type Specific getOrDefault method to reduce boxing/unboxing
|
ShortSet |
keySet() |
byte |
put(short key,
byte value)
Type Specific method to reduce boxing/unboxing of values
|
byte |
putIfAbsent(short key,
byte value)
Type Specific method to reduce boxing/unboxing of values
|
boolean |
remove(short key,
byte value)
Type Specific remove function to reduce boxing/unboxing
|
byte |
remShort(short key)
Type Specific remove function to reduce boxing/unboxing
|
byte |
remShortOrDefault(short key,
byte defaultValue)
Type-Specific Remove function with a default return value if wanted.
|
ObjectSet<Short2ByteMap.Entry> |
short2ByteEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
ByteCollection |
values() |
addToAll, computeByte, computeByteIfAbsent, computeByteIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getDefaultReturnValue, getOrDefault, hashCode, mergeAllByte, mergeByte, putAll, putAll, putAll, putAllIfAbsent, replace, replace, replaceBytes, replaceBytes, setDefaultReturnValueclear, containsKey, containsValue, isEmpty, put, remove, size, toStringaddToAll, compute, computeByte, computeByteIfAbsent, computeByteIfPresent, computeIfAbsent, computeIfPresent, containsKey, containsKey, containsValue, containsValue, entrySet, forEach, forEach, get, getDefaultReturnValue, getOrDefault, merge, mergeAllByte, mergeByte, put, putAll, putAll, putAll, putAllIfAbsent, putIfAbsent, remove, remove, replace, replace, replace, replace, replaceAll, replaceBytes, replaceBytes, setDefaultReturnValuepublic byte put(short key,
byte value)
Short2ByteMapput in interface Short2ByteMapkey - the key that should be inserted,value - the value that should be insertedMap.put(Object, Object)public byte putIfAbsent(short key,
byte value)
Short2ByteMapputIfAbsent in interface Short2ByteMapkey - the key that should be inserted,value - the value that should be insertedMap.putIfAbsent(Object, Object)public byte addTo(short key,
byte value)
Short2ByteMapaddTo in interface Short2ByteMapkey - the key that should be inserted,value - the value that should be inserted / addedpublic byte remShort(short key)
Short2ByteMapremShort in interface Short2ByteMapkey - the element that should be removedpublic byte remShortOrDefault(short key,
byte defaultValue)
Short2ByteMapremShortOrDefault in interface Short2ByteMapkey - 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,
byte value)
Short2ByteMapremove in interface Short2ByteMapkey - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)public byte getByte(short key)
Short2ByteMapgetByte in interface Short2ByteFunctiongetByte in interface Short2ByteMapkey - the key that is searched forpublic byte getOrDefault(short key,
byte defaultValue)
Short2ByteMapgetOrDefault in interface Short2ByteMapgetOrDefault in class AbstractShort2ByteMapkey - 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.Byte>keySet in interface Short2ByteMapkeySet in class AbstractShort2ByteMappublic ByteCollection values()
values in interface java.util.Map<java.lang.Short,java.lang.Byte>values in interface Short2ByteMapvalues in class AbstractShort2ByteMappublic ObjectSet<Short2ByteMap.Entry> short2ByteEntrySet()
Short2ByteMapshort2ByteEntrySet in interface Short2ByteMap