public static class Char2LongMaps.UnmodifyableMap extends AbstractChar2LongMap implements Char2LongMap
AbstractChar2LongMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Char2LongMap.Entry, Char2LongMap.FastEntrySet| Modifier and Type | Method and Description |
|---|---|
long |
addTo(char key,
long value)
A Helper method to add a primitives together.
|
ObjectSet<Char2LongMap.Entry> |
char2LongEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
long |
getLong(char key)
A Type Specific get method to reduce boxing/unboxing
|
long |
getOrDefault(char key,
long defaultValue)
A Type Specific getOrDefault method to reduce boxing/unboxing
|
CharSet |
keySet() |
long |
put(char key,
long value)
Type Specific method to reduce boxing/unboxing of values
|
long |
putIfAbsent(char key,
long value)
Type Specific method to reduce boxing/unboxing of values
|
long |
remChar(char key)
Type Specific remove function to reduce boxing/unboxing
|
long |
remCharOrDefault(char key,
long defaultValue)
Type-Specific Remove function with a default return value if wanted.
|
boolean |
remove(char key,
long value)
Type Specific remove function to reduce boxing/unboxing
|
LongCollection |
values() |
addToAll, computeLong, computeLongIfAbsent, computeLongIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getDefaultReturnValue, getOrDefault, hashCode, mergeAllLong, mergeLong, putAll, putAll, putAll, putAllIfAbsent, replace, replace, replaceLongs, replaceLongs, setDefaultReturnValueclear, containsKey, containsValue, isEmpty, put, remove, size, toStringaddToAll, compute, computeIfAbsent, computeIfPresent, computeLong, computeLongIfAbsent, computeLongIfPresent, containsKey, containsKey, containsValue, containsValue, entrySet, forEach, forEach, get, getDefaultReturnValue, getOrDefault, merge, mergeAllLong, mergeLong, put, putAll, putAll, putAll, putAllIfAbsent, putIfAbsent, remove, remove, replace, replace, replace, replace, replaceAll, replaceLongs, replaceLongs, setDefaultReturnValuepublic long put(char key,
long value)
Char2LongMapput in interface Char2LongMapkey - the key that should be inserted,value - the value that should be insertedMap.put(Object, Object)public long putIfAbsent(char key,
long value)
Char2LongMapputIfAbsent in interface Char2LongMapkey - the key that should be inserted,value - the value that should be insertedMap.putIfAbsent(Object, Object)public long addTo(char key,
long value)
Char2LongMapaddTo in interface Char2LongMapkey - the key that should be inserted,value - the value that should be inserted / addedpublic long remChar(char key)
Char2LongMapremChar in interface Char2LongMapkey - the element that should be removedpublic long remCharOrDefault(char key,
long defaultValue)
Char2LongMapremCharOrDefault in interface Char2LongMapkey - 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,
long value)
Char2LongMapremove in interface Char2LongMapkey - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)public long getLong(char key)
Char2LongMapgetLong in interface Char2LongFunctiongetLong in interface Char2LongMapkey - the key that is searched forpublic long getOrDefault(char key,
long defaultValue)
Char2LongMapgetOrDefault in interface Char2LongMapgetOrDefault in class AbstractChar2LongMapkey - 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.Long>keySet in interface Char2LongMapkeySet in class AbstractChar2LongMappublic LongCollection values()
values in interface java.util.Map<java.lang.Character,java.lang.Long>values in interface Char2LongMapvalues in class AbstractChar2LongMappublic ObjectSet<Char2LongMap.Entry> char2LongEntrySet()
Char2LongMapchar2LongEntrySet in interface Char2LongMap