public static class Byte2ByteMaps.UnmodifyableMap extends AbstractByte2ByteMap implements Byte2ByteMap
AbstractByte2ByteMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Byte2ByteMap.Entry, Byte2ByteMap.FastEntrySet| Modifier and Type | Method and Description |
|---|---|
byte |
addTo(byte key,
byte value)
A Helper method to add a primitives together.
|
ObjectSet<Byte2ByteMap.Entry> |
byte2ByteEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
byte |
getByte(byte key)
A Type Specific get method to reduce boxing/unboxing
|
byte |
getOrDefault(byte key,
byte defaultValue)
A Type Specific getOrDefault method to reduce boxing/unboxing
|
ByteSet |
keySet() |
byte |
put(byte key,
byte value)
Type Specific method to reduce boxing/unboxing of values
|
byte |
putIfAbsent(byte key,
byte value)
Type Specific method to reduce boxing/unboxing of values
|
byte |
remByte(byte key)
Type Specific remove function to reduce boxing/unboxing
|
byte |
remByteOrDefault(byte key,
byte defaultValue)
Type-Specific Remove function with a default return value if wanted.
|
boolean |
remove(byte key,
byte value)
Type Specific remove function to reduce boxing/unboxing
|
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(byte key,
byte value)
Byte2ByteMapput in interface Byte2ByteMapkey - the key that should be inserted,value - the value that should be insertedMap.put(Object, Object)public byte putIfAbsent(byte key,
byte value)
Byte2ByteMapputIfAbsent in interface Byte2ByteMapkey - the key that should be inserted,value - the value that should be insertedMap.putIfAbsent(Object, Object)public byte addTo(byte key,
byte value)
Byte2ByteMapaddTo in interface Byte2ByteMapkey - the key that should be inserted,value - the value that should be inserted / addedpublic byte remByte(byte key)
Byte2ByteMapremByte in interface Byte2ByteMapkey - the element that should be removedpublic byte remByteOrDefault(byte key,
byte defaultValue)
Byte2ByteMapremByteOrDefault in interface Byte2ByteMapkey - the element that should be removeddefaultValue - the value that should be returned if the entry doesn't existMap.remove(Object, Object)public boolean remove(byte key,
byte value)
Byte2ByteMapremove in interface Byte2ByteMapkey - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)public byte getByte(byte key)
Byte2ByteMapgetByte in interface Byte2ByteFunctiongetByte in interface Byte2ByteMapkey - the key that is searched forpublic byte getOrDefault(byte key,
byte defaultValue)
Byte2ByteMapgetOrDefault in interface Byte2ByteMapgetOrDefault in class AbstractByte2ByteMapkey - the key that is searched fordefaultValue - the value that should be returned if the key is not presentpublic ByteSet keySet()
keySet in interface java.util.Map<java.lang.Byte,java.lang.Byte>keySet in interface Byte2ByteMapkeySet in class AbstractByte2ByteMappublic ByteCollection values()
values in interface java.util.Map<java.lang.Byte,java.lang.Byte>values in interface Byte2ByteMapvalues in class AbstractByte2ByteMappublic ObjectSet<Byte2ByteMap.Entry> byte2ByteEntrySet()
Byte2ByteMapbyte2ByteEntrySet in interface Byte2ByteMap