public static class Byte2CharMaps.EmptyMap extends AbstractByte2CharMap
AbstractByte2CharMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Byte2CharMap.Entry, Byte2CharMap.FastEntrySet| Constructor and Description |
|---|
EmptyMap() |
| Modifier and Type | Method and Description |
|---|---|
char |
addTo(byte key,
char value)
A Helper method to add a primitives together.
|
ObjectSet<Byte2CharMap.Entry> |
byte2CharEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
char |
getChar(byte key)
A Type Specific get method to reduce boxing/unboxing
|
char |
getOrDefault(byte key,
char defaultValue)
A Type Specific getOrDefault method to reduce boxing/unboxing
|
ByteSet |
keySet() |
char |
put(byte key,
char value)
Type Specific method to reduce boxing/unboxing of values
|
char |
putIfAbsent(byte key,
char value)
Type Specific method to reduce boxing/unboxing of values
|
char |
remByte(byte key)
Type Specific remove function to reduce boxing/unboxing
|
char |
remByteOrDefault(byte key,
char defaultValue)
Type-Specific Remove function with a default return value if wanted.
|
boolean |
remove(byte key,
char value)
Type Specific remove function to reduce boxing/unboxing
|
CharCollection |
values() |
addToAll, computeChar, computeCharIfAbsent, computeCharIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getDefaultReturnValue, getOrDefault, hashCode, mergeAllChar, mergeChar, putAll, putAll, putAll, putAllIfAbsent, replace, replace, replaceChars, replaceChars, setDefaultReturnValueclear, containsKey, containsValue, isEmpty, put, remove, size, toStringcompute, computeIfAbsent, computeIfPresent, containsKey, containsValue, forEach, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAllpublic char put(byte key,
char value)
Byte2CharMapkey - the key that should be inserted,value - the value that should be insertedMap.put(Object, Object)public char putIfAbsent(byte key,
char value)
Byte2CharMapkey - the key that should be inserted,value - the value that should be insertedMap.putIfAbsent(Object, Object)public char addTo(byte key,
char value)
Byte2CharMapkey - the key that should be inserted,value - the value that should be inserted / addedpublic char remByte(byte key)
Byte2CharMapkey - the element that should be removedpublic char remByteOrDefault(byte key,
char defaultValue)
Byte2CharMapkey - 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,
char value)
Byte2CharMapkey - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)public char getChar(byte key)
Byte2CharMapkey - the key that is searched forpublic char getOrDefault(byte key,
char defaultValue)
Byte2CharMapgetOrDefault in interface Byte2CharMapgetOrDefault in class AbstractByte2CharMapkey - 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.Character>keySet in interface Byte2CharMapkeySet in class AbstractByte2CharMappublic CharCollection values()
values in interface java.util.Map<java.lang.Byte,java.lang.Character>values in interface Byte2CharMapvalues in class AbstractByte2CharMappublic ObjectSet<Byte2CharMap.Entry> byte2CharEntrySet()
Byte2CharMap