public static class Long2CharMaps.UnmodifyableMap extends AbstractLong2CharMap implements Long2CharMap
AbstractLong2CharMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Long2CharMap.Entry, Long2CharMap.FastEntrySet| Modifier and Type | Method and Description |
|---|---|
char |
addTo(long key,
char value)
A Helper method to add a primitives together.
|
char |
getChar(long key)
A Type Specific get method to reduce boxing/unboxing
|
char |
getOrDefault(long key,
char defaultValue)
A Type Specific getOrDefault method to reduce boxing/unboxing
|
LongSet |
keySet() |
ObjectSet<Long2CharMap.Entry> |
long2CharEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
char |
put(long key,
char value)
Type Specific method to reduce boxing/unboxing of values
|
char |
putIfAbsent(long key,
char value)
Type Specific method to reduce boxing/unboxing of values
|
char |
remLong(long key)
Type Specific remove function to reduce boxing/unboxing
|
char |
remLongOrDefault(long key,
char defaultValue)
Type-Specific Remove function with a default return value if wanted.
|
boolean |
remove(long 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, 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(long key,
char value)
Long2CharMapput in interface Long2CharMapkey - the key that should be inserted,value - the value that should be insertedMap.put(Object, Object)public char putIfAbsent(long key,
char value)
Long2CharMapputIfAbsent in interface Long2CharMapkey - the key that should be inserted,value - the value that should be insertedMap.putIfAbsent(Object, Object)public char addTo(long key,
char value)
Long2CharMapaddTo in interface Long2CharMapkey - the key that should be inserted,value - the value that should be inserted / addedpublic char remLong(long key)
Long2CharMapremLong in interface Long2CharMapkey - the element that should be removedpublic char remLongOrDefault(long key,
char defaultValue)
Long2CharMapremLongOrDefault in interface Long2CharMapkey - the element that should be removeddefaultValue - the value that should be returned if the entry doesn't existMap.remove(Object, Object)public boolean remove(long key,
char value)
Long2CharMapremove in interface Long2CharMapkey - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)public char getChar(long key)
Long2CharMapgetChar in interface Long2CharFunctiongetChar in interface Long2CharMapkey - the key that is searched forpublic char getOrDefault(long key,
char defaultValue)
Long2CharMapgetOrDefault in interface Long2CharMapgetOrDefault in class AbstractLong2CharMapkey - the key that is searched fordefaultValue - the value that should be returned if the key is not presentpublic LongSet keySet()
keySet in interface java.util.Map<java.lang.Long,java.lang.Character>keySet in interface Long2CharMapkeySet in class AbstractLong2CharMappublic CharCollection values()
values in interface java.util.Map<java.lang.Long,java.lang.Character>values in interface Long2CharMapvalues in class AbstractLong2CharMappublic ObjectSet<Long2CharMap.Entry> long2CharEntrySet()
Long2CharMaplong2CharEntrySet in interface Long2CharMap