public static class Short2CharMaps.UnmodifyableMap extends AbstractShort2CharMap implements Short2CharMap
AbstractShort2CharMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Short2CharMap.Entry, Short2CharMap.FastEntrySet| Modifier and Type | Method and Description |
|---|---|
char |
addTo(short key,
char value)
A Helper method to add a primitives together.
|
char |
getChar(short key)
A Type Specific get method to reduce boxing/unboxing
|
char |
getOrDefault(short key,
char defaultValue)
A Type Specific getOrDefault method to reduce boxing/unboxing
|
ShortSet |
keySet() |
char |
put(short key,
char value)
Type Specific method to reduce boxing/unboxing of values
|
char |
putIfAbsent(short key,
char value)
Type Specific method to reduce boxing/unboxing of values
|
boolean |
remove(short key,
char value)
Type Specific remove function to reduce boxing/unboxing
|
char |
remShort(short key)
Type Specific remove function to reduce boxing/unboxing
|
char |
remShortOrDefault(short key,
char defaultValue)
Type-Specific Remove function with a default return value if wanted.
|
ObjectSet<Short2CharMap.Entry> |
short2CharEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
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, toStringaddToAll, compute, computeChar, computeCharIfAbsent, computeCharIfPresent, computeIfAbsent, computeIfPresent, containsKey, containsKey, containsValue, containsValue, entrySet, forEach, forEach, get, getDefaultReturnValue, getOrDefault, merge, mergeAllChar, mergeChar, put, putAll, putAll, putAll, putAllIfAbsent, putIfAbsent, remove, remove, replace, replace, replace, replace, replaceAll, replaceChars, replaceChars, setDefaultReturnValuepublic char put(short key,
char value)
Short2CharMapput in interface Short2CharMapkey - the key that should be inserted,value - the value that should be insertedMap.put(Object, Object)public char putIfAbsent(short key,
char value)
Short2CharMapputIfAbsent in interface Short2CharMapkey - the key that should be inserted,value - the value that should be insertedMap.putIfAbsent(Object, Object)public char addTo(short key,
char value)
Short2CharMapaddTo in interface Short2CharMapkey - the key that should be inserted,value - the value that should be inserted / addedpublic char remShort(short key)
Short2CharMapremShort in interface Short2CharMapkey - the element that should be removedpublic char remShortOrDefault(short key,
char defaultValue)
Short2CharMapremShortOrDefault in interface Short2CharMapkey - 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,
char value)
Short2CharMapremove in interface Short2CharMapkey - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)public char getChar(short key)
Short2CharMapgetChar in interface Short2CharFunctiongetChar in interface Short2CharMapkey - the key that is searched forpublic char getOrDefault(short key,
char defaultValue)
Short2CharMapgetOrDefault in interface Short2CharMapgetOrDefault in class AbstractShort2CharMapkey - 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.Character>keySet in interface Short2CharMapkeySet in class AbstractShort2CharMappublic CharCollection values()
values in interface java.util.Map<java.lang.Short,java.lang.Character>values in interface Short2CharMapvalues in class AbstractShort2CharMappublic ObjectSet<Short2CharMap.Entry> short2CharEntrySet()
Short2CharMapshort2CharEntrySet in interface Short2CharMap