public static class Char2ByteMaps.SingletonMap extends AbstractChar2ByteMap
AbstractChar2ByteMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Char2ByteMap.Entry, Char2ByteMap.FastEntrySet| Modifier and Type | Method and Description |
|---|---|
byte |
addTo(char key,
byte value)
A Helper method to add a primitives together.
|
ObjectSet<Char2ByteMap.Entry> |
char2ByteEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
byte |
getByte(char key)
A Type Specific get method to reduce boxing/unboxing
|
byte |
getOrDefault(char key,
byte defaultValue)
A Type Specific getOrDefault method to reduce boxing/unboxing
|
CharSet |
keySet() |
byte |
put(char key,
byte value)
Type Specific method to reduce boxing/unboxing of values
|
byte |
putIfAbsent(char key,
byte value)
Type Specific method to reduce boxing/unboxing of values
|
byte |
remChar(char key)
Type Specific remove function to reduce boxing/unboxing
|
byte |
remCharOrDefault(char key,
byte defaultValue)
Type-Specific Remove function with a default return value if wanted.
|
boolean |
remove(char 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, toStringcompute, computeIfAbsent, computeIfPresent, containsKey, containsValue, forEach, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAllpublic byte put(char key,
byte value)
Char2ByteMapkey - the key that should be inserted,value - the value that should be insertedMap.put(Object, Object)public byte putIfAbsent(char key,
byte value)
Char2ByteMapkey - the key that should be inserted,value - the value that should be insertedMap.putIfAbsent(Object, Object)public byte addTo(char key,
byte value)
Char2ByteMapkey - the key that should be inserted,value - the value that should be inserted / addedpublic byte remChar(char key)
Char2ByteMapkey - the element that should be removedpublic byte remCharOrDefault(char key,
byte defaultValue)
Char2ByteMapkey - the element that should be removeddefaultValue - the value that should be returned if the entry doesn't existMap.remove(Object, Object)public boolean remove(char key,
byte value)
Char2ByteMapkey - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)public byte getByte(char key)
Char2ByteMapkey - the key that is searched forpublic byte getOrDefault(char key,
byte defaultValue)
Char2ByteMapgetOrDefault in interface Char2ByteMapgetOrDefault in class AbstractChar2ByteMapkey - the key that is searched fordefaultValue - the value that should be returned if the key is not presentpublic CharSet keySet()
keySet in interface java.util.Map<java.lang.Character,java.lang.Byte>keySet in interface Char2ByteMapkeySet in class AbstractChar2ByteMappublic ByteCollection values()
values in interface java.util.Map<java.lang.Character,java.lang.Byte>values in interface Char2ByteMapvalues in class AbstractChar2ByteMappublic ObjectSet<Char2ByteMap.Entry> char2ByteEntrySet()
Char2ByteMap