public abstract class AbstractBoolean2CharMap extends java.util.AbstractMap<java.lang.Boolean,java.lang.Character> implements Boolean2CharMap
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractBoolean2CharMap.BasicEntry
A Simple Type Specific Entry class to reduce boxing/unboxing
|
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Boolean2CharMap.Entry, Boolean2CharMap.FastEntrySet| Constructor and Description |
|---|
AbstractBoolean2CharMap() |
| Modifier and Type | Method and Description |
|---|---|
void |
addToAll(Boolean2CharMap m)
A Helper method to bulk add primitives together.
|
char |
computeChar(boolean key,
BooleanCharUnaryOperator mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
char |
computeCharIfAbsent(boolean key,
Boolean2CharFunction mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
char |
computeCharIfPresent(boolean key,
BooleanCharUnaryOperator mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
boolean |
containsKey(boolean key)
Type Specific method to reduce boxing/unboxing of values
|
boolean |
containsValue(char value)
Type Specific method to reduce boxing/unboxing of values
|
Boolean2CharMap |
copy()
A Function that does a shallow clone of the Map itself.
|
ObjectSet<java.util.Map.Entry<java.lang.Boolean,java.lang.Character>> |
entrySet() |
boolean |
equals(java.lang.Object o) |
void |
forEach(BooleanCharConsumer 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(boolean 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() |
BooleanSet |
keySet() |
void |
mergeAllChar(Boolean2CharMap m,
CharCharUnaryOperator mappingFunction)
A Bulk method for merging Maps.
|
char |
mergeChar(boolean key,
char value,
CharCharUnaryOperator mappingFunction)
A Type Specific merge method to reduce boxing/unboxing
|
java.lang.Character |
put(java.lang.Boolean key,
java.lang.Character value)
Deprecated.
|
void |
putAll(boolean[] 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(java.lang.Boolean[] keys,
java.lang.Character[] values,
int offset,
int size)
Type Specific Object array method to bulk add elements into a map without creating a wrapper and increasing performances
|
void |
putAll(Boolean2CharMap m)
Type Specific function for the bull putting of values
|
void |
putAll(java.util.Map<? extends java.lang.Boolean,? extends java.lang.Character> m) |
void |
putAllIfAbsent(Boolean2CharMap m)
Type-Specific bulk put method put elements into the map if not present.
|
java.lang.Character |
remove(java.lang.Object key) |
char |
replace(boolean key,
char value)
A Type Specific replace method to reduce boxing/unboxing replace an existing value
|
boolean |
replace(boolean key,
char oldValue,
char newValue)
A Type Specific replace method to replace an existing value
|
void |
replaceChars(Boolean2CharMap m)
Type-Specific bulk replace method.
|
void |
replaceChars(BooleanCharUnaryOperator mappingFunction)
A Type Specific mass replace method to reduce boxing/unboxing
|
AbstractBoolean2CharMap |
setDefaultReturnValue(char v)
Method to define the default return value if a requested key isn't present
|
char |
supplyCharIfAbsent(boolean key,
CharSupplier valueProvider)
A Supplier based computeIfAbsent function to fill the most used usecase of this function
|
CharCollection |
values() |
clear, containsKey, containsValue, isEmpty, size, toStringaddTo, boolean2CharEntrySet, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, forEach, get, merge, put, putAll, putAll, putIfAbsent, putIfAbsent, remove, remove, remove, removeOrDefault, replace, replace, replaceAll, subFrompublic char getDefaultReturnValue()
Boolean2CharMapgetDefaultReturnValue in interface Boolean2CharMappublic AbstractBoolean2CharMap setDefaultReturnValue(char v)
Boolean2CharMapsetDefaultReturnValue in interface Boolean2CharMapv - value that should be the default return valuepublic Boolean2CharMap copy()
Boolean2CharMapcopy in interface Boolean2CharMap@Deprecated
public java.lang.Character put(java.lang.Boolean key,
java.lang.Character value)
put in interface java.util.Map<java.lang.Boolean,java.lang.Character>put in interface Boolean2CharMapput in class java.util.AbstractMap<java.lang.Boolean,java.lang.Character>public void addToAll(Boolean2CharMap m)
Boolean2CharMapaddToAll in interface Boolean2CharMapm - the values that should be added/insertedpublic void putAll(Boolean2CharMap m)
Boolean2CharMapputAll in interface Boolean2CharMapm - the elements that should be insertedpublic void putAll(java.util.Map<? extends java.lang.Boolean,? extends java.lang.Character> m)
putAll in interface java.util.Map<java.lang.Boolean,java.lang.Character>putAll in class java.util.AbstractMap<java.lang.Boolean,java.lang.Character>public void putAll(boolean[] keys,
char[] values,
int offset,
int size)
Boolean2CharMapputAll in interface Boolean2CharMapkeys - 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 putAll(java.lang.Boolean[] keys,
java.lang.Character[] values,
int offset,
int size)
Boolean2CharMapputAll in interface Boolean2CharMapkeys - 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(Boolean2CharMap m)
Boolean2CharMapputAllIfAbsent in interface Boolean2CharMapm - elements that should be added if not present.public boolean containsKey(boolean key)
Boolean2CharMapcontainsKey in interface Boolean2CharMapkey - element that is searched forpublic boolean containsValue(char value)
Boolean2CharMapcontainsValue in interface Boolean2CharMapvalue - element that is searched forpublic boolean replace(boolean key,
char oldValue,
char newValue)
Boolean2CharMapreplace in interface Boolean2CharMapkey - the element that should be searched foroldValue - the expected value to be replacednewValue - the value to replace the oldValue with.public char replace(boolean key,
char value)
Boolean2CharMapreplace in interface Boolean2CharMapkey - the element that should be searched forvalue - the value to replace with.public void replaceChars(Boolean2CharMap m)
Boolean2CharMapreplaceChars in interface Boolean2CharMapm - elements that should be replaced.public void replaceChars(BooleanCharUnaryOperator mappingFunction)
Boolean2CharMapreplaceChars in interface Boolean2CharMapmappingFunction - operation to replace all valuespublic char computeChar(boolean key,
BooleanCharUnaryOperator mappingFunction)
Boolean2CharMapcomputeChar in interface Boolean2CharMapkey - the key that should be computedmappingFunction - the operator that should generate the valuepublic char computeCharIfAbsent(boolean key,
Boolean2CharFunction mappingFunction)
Boolean2CharMapcomputeCharIfAbsent in interface Boolean2CharMapkey - the key that should be computedmappingFunction - the operator that should generate the value if not presentpublic char supplyCharIfAbsent(boolean key,
CharSupplier valueProvider)
Boolean2CharMapsupplyCharIfAbsent in interface Boolean2CharMapkey - the key that should be computedvalueProvider - the value if not presentpublic char computeCharIfPresent(boolean key,
BooleanCharUnaryOperator mappingFunction)
Boolean2CharMapcomputeCharIfPresent in interface Boolean2CharMapkey - the key that should be computedmappingFunction - the operator that should generate the value if presentpublic char mergeChar(boolean key,
char value,
CharCharUnaryOperator mappingFunction)
Boolean2CharMapmergeChar in interface Boolean2CharMapkey - 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(Boolean2CharMap m, CharCharUnaryOperator mappingFunction)
Boolean2CharMapmergeAllChar in interface Boolean2CharMapm - 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.Boolean,java.lang.Character>get in interface Boolean2CharMapget in class java.util.AbstractMap<java.lang.Boolean,java.lang.Character>public java.lang.Character getOrDefault(java.lang.Object key,
java.lang.Character defaultValue)
getOrDefault in interface java.util.Map<java.lang.Boolean,java.lang.Character>getOrDefault in interface Boolean2CharMappublic char getOrDefault(boolean key,
char defaultValue)
Boolean2CharMapgetOrDefault in interface Boolean2CharMapkey - the key that is searched fordefaultValue - the value that should be returned if the key is not presentpublic java.lang.Character remove(java.lang.Object key)
remove in interface java.util.Map<java.lang.Boolean,java.lang.Character>remove in interface Boolean2CharMapremove in class java.util.AbstractMap<java.lang.Boolean,java.lang.Character>key - the element that should be removedMap.remove(Object)public void forEach(BooleanCharConsumer action)
Boolean2CharMapforEach in interface Boolean2CharMapaction - processor of the values that are iterator overpublic BooleanSet keySet()
keySet in interface java.util.Map<java.lang.Boolean,java.lang.Character>keySet in interface Boolean2CharMapkeySet in class java.util.AbstractMap<java.lang.Boolean,java.lang.Character>public CharCollection values()
values in interface java.util.Map<java.lang.Boolean,java.lang.Character>values in interface Boolean2CharMapvalues in class java.util.AbstractMap<java.lang.Boolean,java.lang.Character>public ObjectSet<java.util.Map.Entry<java.lang.Boolean,java.lang.Character>> entrySet()
entrySet in interface java.util.Map<java.lang.Boolean,java.lang.Character>entrySet in interface Boolean2CharMapentrySet in class java.util.AbstractMap<java.lang.Boolean,java.lang.Character>public boolean equals(java.lang.Object o)
equals in interface java.util.Map<java.lang.Boolean,java.lang.Character>equals in class java.util.AbstractMap<java.lang.Boolean,java.lang.Character>public int hashCode()
hashCode in interface java.util.Map<java.lang.Boolean,java.lang.Character>hashCode in class java.util.AbstractMap<java.lang.Boolean,java.lang.Character>