public static class Int2ByteMaps.UnmodifyableMap extends AbstractInt2ByteMap implements Int2ByteMap
AbstractInt2ByteMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Int2ByteMap.Entry, Int2ByteMap.FastEntrySet| Modifier and Type | Method and Description |
|---|---|
byte |
addTo(int key,
byte value)
A Helper method to add a primitives together.
|
byte |
getByte(int key)
A Type Specific get method to reduce boxing/unboxing
|
byte |
getOrDefault(int key,
byte defaultValue)
A Type Specific getOrDefault method to reduce boxing/unboxing
|
ObjectSet<Int2ByteMap.Entry> |
int2ByteEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
IntSet |
keySet() |
byte |
put(int key,
byte value)
Type Specific method to reduce boxing/unboxing of values
|
byte |
putIfAbsent(int key,
byte value)
Type Specific method to reduce boxing/unboxing of values
|
byte |
remInt(int key)
Type Specific remove function to reduce boxing/unboxing
|
byte |
remIntOrDefault(int key,
byte defaultValue)
Type-Specific Remove function with a default return value if wanted.
|
boolean |
remove(int 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(int key,
byte value)
Int2ByteMapput in interface Int2ByteMapkey - the key that should be inserted,value - the value that should be insertedMap.put(Object, Object)public byte putIfAbsent(int key,
byte value)
Int2ByteMapputIfAbsent in interface Int2ByteMapkey - the key that should be inserted,value - the value that should be insertedMap.putIfAbsent(Object, Object)public byte addTo(int key,
byte value)
Int2ByteMapaddTo in interface Int2ByteMapkey - the key that should be inserted,value - the value that should be inserted / addedpublic byte remInt(int key)
Int2ByteMapremInt in interface Int2ByteMapkey - the element that should be removedpublic byte remIntOrDefault(int key,
byte defaultValue)
Int2ByteMapremIntOrDefault in interface Int2ByteMapkey - 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,
byte value)
Int2ByteMapremove in interface Int2ByteMapkey - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)public byte getByte(int key)
Int2ByteMapgetByte in interface Int2ByteFunctiongetByte in interface Int2ByteMapkey - the key that is searched forpublic byte getOrDefault(int key,
byte defaultValue)
Int2ByteMapgetOrDefault in interface Int2ByteMapgetOrDefault in class AbstractInt2ByteMapkey - 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.Byte>keySet in interface Int2ByteMapkeySet in class AbstractInt2ByteMappublic ByteCollection values()
values in interface java.util.Map<java.lang.Integer,java.lang.Byte>values in interface Int2ByteMapvalues in class AbstractInt2ByteMappublic ObjectSet<Int2ByteMap.Entry> int2ByteEntrySet()
Int2ByteMapint2ByteEntrySet in interface Int2ByteMap