public abstract class AbstractLong2CharMap extends java.util.AbstractMap<java.lang.Long,java.lang.Character> implements Long2CharMap
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractLong2CharMap.BasicEntry
A Simple Type Specific Entry class to reduce boxing/unboxing
|
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Long2CharMap.Entry, Long2CharMap.FastEntrySet| Constructor and Description |
|---|
AbstractLong2CharMap() |
| Modifier and Type | Method and Description |
|---|---|
void |
addToAll(Long2CharMap m)
A Helper method to bulk add primitives together.
|
char |
computeChar(long key,
LongCharUnaryOperator mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
char |
computeCharIfAbsent(long key,
Long2CharFunction mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
char |
computeCharIfPresent(long key,
LongCharUnaryOperator mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
boolean |
containsKey(long key)
Type Specific method to reduce boxing/unboxing of values
|
boolean |
containsValue(char value)
Type Specific method to reduce boxing/unboxing of values
|
ObjectSet<java.util.Map.Entry<java.lang.Long,java.lang.Character>> |
entrySet() |
boolean |
equals(java.lang.Object o) |
void |
forEach(LongCharConsumer action)
Type Specific forEach method to reduce boxing/unboxing
|
java.lang.Character |
get(java.lang.Object key) |
char |
getDefaultReturnValue()
Method to see what the default return value is.
|
char |
getOrDefault(long key,
char defaultValue)
A Type Specific getOrDefault method to reduce boxing/unboxing
|
java.lang.Character |
getOrDefault(java.lang.Object key,
java.lang.Character defaultValue) |
int |
hashCode() |
LongSet |
keySet() |
void |
mergeAllChar(Long2CharMap m,
CharCharUnaryOperator mappingFunction)
A Bulk method for merging Maps.
|
char |
mergeChar(long key,
char value,
CharCharUnaryOperator mappingFunction)
A Type Specific merge method to reduce boxing/unboxing
|
void |
putAll(long[] keys,
char[] values,
int offset,
int size)
Type Specific array method to bulk add elements into a map without creating a wrapper and increasing performances
|
void |
putAll(Long2CharMap m)
Type Specific function for the bull putting of values
|
void |
putAll(java.util.Map<? extends java.lang.Long,? extends java.lang.Character> m) |
void |
putAllIfAbsent(Long2CharMap m)
Type-Specific bulk put method put elements into the map if not present.
|
char |
replace(long key,
char value)
A Type Specific replace method to reduce boxing/unboxing replace an existing value
|
boolean |
replace(long key,
char oldValue,
char newValue)
A Type Specific replace method to replace an existing value
|
void |
replaceChars(Long2CharMap m)
Type-Specific bulk replace method.
|
void |
replaceChars(LongCharUnaryOperator mappingFunction)
A Type Specific mass replace method to reduce boxing/unboxing
|
AbstractLong2CharMap |
setDefaultReturnValue(char v)
Method to define the default return value if a requested key isn't present
|
CharCollection |
values() |
clear, containsKey, containsValue, isEmpty, put, remove, size, toStringaddTo, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, forEach, getChar, long2CharEntrySet, merge, put, put, putAll, putIfAbsent, putIfAbsent, remLong, remLongOrDefault, remove, remove, remove, replace, replace, replaceAllpublic char getDefaultReturnValue()
Long2CharMapgetDefaultReturnValue in interface Long2CharMappublic AbstractLong2CharMap setDefaultReturnValue(char v)
Long2CharMapsetDefaultReturnValue in interface Long2CharMapv - value that should be the default return valuepublic void addToAll(Long2CharMap m)
Long2CharMapaddToAll in interface Long2CharMapm - the values that should be added/insertedpublic void putAll(Long2CharMap m)
Long2CharMapputAll in interface Long2CharMapm - the elements that should be insertedpublic void putAll(java.util.Map<? extends java.lang.Long,? extends java.lang.Character> m)
putAll in interface java.util.Map<java.lang.Long,java.lang.Character>putAll in class java.util.AbstractMap<java.lang.Long,java.lang.Character>public void putAll(long[] keys,
char[] values,
int offset,
int size)
Long2CharMapputAll in interface Long2CharMapkeys - the keys that should be addedvalues - the values that should be addedoffset - where the to start in the arraysize - how many elements should be addedMap.putAll(Map)public void putAllIfAbsent(Long2CharMap m)
Long2CharMapputAllIfAbsent in interface Long2CharMapm - elements that should be added if not present.public boolean containsKey(long key)
Long2CharMapcontainsKey in interface Long2CharMapkey - element that is searched forpublic boolean containsValue(char value)
Long2CharMapcontainsValue in interface Long2CharMapvalue - element that is searched forpublic boolean replace(long key,
char oldValue,
char newValue)
Long2CharMapreplace in interface Long2CharMapkey - the element that should be searched foroldValue - the expected value to be replacednewValue - the value to replace the oldValue with.public char replace(long key,
char value)
Long2CharMapreplace in interface Long2CharMapkey - the element that should be searched forvalue - the value to replace with.public void replaceChars(Long2CharMap m)
Long2CharMapreplaceChars in interface Long2CharMapm - elements that should be replaced.public void replaceChars(LongCharUnaryOperator mappingFunction)
Long2CharMapreplaceChars in interface Long2CharMapmappingFunction - operation to replace all valuespublic char computeChar(long key,
LongCharUnaryOperator mappingFunction)
Long2CharMapcomputeChar in interface Long2CharMapkey - the key that should be computedmappingFunction - the operator that should generate the valuepublic char computeCharIfAbsent(long key,
Long2CharFunction mappingFunction)
Long2CharMapcomputeCharIfAbsent in interface Long2CharMapkey - the key that should be computedmappingFunction - the operator that should generate the value if not presentpublic char computeCharIfPresent(long key,
LongCharUnaryOperator mappingFunction)
Long2CharMapcomputeCharIfPresent in interface Long2CharMapkey - the key that should be computedmappingFunction - the operator that should generate the value if presentpublic char mergeChar(long key,
char value,
CharCharUnaryOperator mappingFunction)
Long2CharMapmergeChar in interface Long2CharMapkey - the key that should be be searched forvalue - the value that should be merged withmappingFunction - the operator that should generate the new Valuepublic void mergeAllChar(Long2CharMap m, CharCharUnaryOperator mappingFunction)
Long2CharMapmergeAllChar in interface Long2CharMapm - the entries that should be bulk addedmappingFunction - the operator that should generate the new Valuepublic java.lang.Character get(java.lang.Object key)
get in interface java.util.Map<java.lang.Long,java.lang.Character>get in interface Long2CharMapget in class java.util.AbstractMap<java.lang.Long,java.lang.Character>public java.lang.Character getOrDefault(java.lang.Object key,
java.lang.Character defaultValue)
getOrDefault in interface java.util.Map<java.lang.Long,java.lang.Character>getOrDefault in interface Long2CharMappublic char getOrDefault(long key,
char defaultValue)
Long2CharMapgetOrDefault in interface Long2CharMapkey - the key that is searched fordefaultValue - the value that should be returned if the key is not presentpublic void forEach(LongCharConsumer action)
Long2CharMapforEach in interface Long2CharMapaction - processor of the values that are iterator overpublic LongSet keySet()
keySet in interface java.util.Map<java.lang.Long,java.lang.Character>keySet in interface Long2CharMapkeySet in class java.util.AbstractMap<java.lang.Long,java.lang.Character>public CharCollection values()
values in interface java.util.Map<java.lang.Long,java.lang.Character>values in interface Long2CharMapvalues in class java.util.AbstractMap<java.lang.Long,java.lang.Character>public ObjectSet<java.util.Map.Entry<java.lang.Long,java.lang.Character>> entrySet()
entrySet in interface java.util.Map<java.lang.Long,java.lang.Character>entrySet in interface Long2CharMapentrySet in class java.util.AbstractMap<java.lang.Long,java.lang.Character>public boolean equals(java.lang.Object o)
equals in interface java.util.Map<java.lang.Long,java.lang.Character>equals in class java.util.AbstractMap<java.lang.Long,java.lang.Character>public int hashCode()
hashCode in interface java.util.Map<java.lang.Long,java.lang.Character>hashCode in class java.util.AbstractMap<java.lang.Long,java.lang.Character>