public static class Char2CharMaps.SingletonMap extends AbstractChar2CharMap
AbstractChar2CharMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Char2CharMap.BuilderCache, Char2CharMap.Entry, Char2CharMap.FastEntrySet, Char2CharMap.MapBuilder| Modifier and Type | Method and Description |
|---|---|
char |
addTo(char key,
char value)
A Helper method to add a primitives together.
|
ObjectSet<Char2CharMap.Entry> |
char2CharEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
char |
computeChar(char key,
CharCharUnaryOperator mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
char |
computeCharIfAbsent(char key,
Char2CharFunction mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
char |
computeCharIfPresent(char key,
CharCharUnaryOperator mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
Char2CharMaps.SingletonMap |
copy()
A Function that does a shallow clone of the Map itself.
|
char |
get(char key)
A Type Specific get method to reduce boxing/unboxing
|
char |
getOrDefault(char key,
char defaultValue)
A Type Specific getOrDefault method to reduce boxing/unboxing
|
CharSet |
keySet() |
void |
mergeAllChar(Char2CharMap m,
CharCharUnaryOperator mappingFunction)
A Bulk method for merging Maps.
|
char |
mergeChar(char key,
char value,
CharCharUnaryOperator mappingFunction)
A Type Specific merge method to reduce boxing/unboxing
|
char |
put(char key,
char value)
Type Specific method to reduce boxing/unboxing of values
|
char |
putIfAbsent(char key,
char value)
Type Specific method to reduce boxing/unboxing of values
|
char |
remove(char key)
Type Specific remove function to reduce boxing/unboxing
|
boolean |
remove(char key,
char value)
Type Specific remove function to reduce boxing/unboxing
|
char |
removeOrDefault(char key,
char defaultValue)
Type-Specific Remove function with a default return value if wanted.
|
char |
subFrom(char key,
char value)
A Helper method to subtract from primitive from each other.
|
char |
supplyCharIfAbsent(char key,
CharSupplier valueProvider)
A Supplier based computeIfAbsent function to fill the most used usecase of this function
|
CharCollection |
values() |
addToAll, containsKey, containsValue, entrySet, equals, forEach, get, getDefaultReturnValue, getOrDefault, hashCode, put, putAll, putAll, putAll, putAll, putAllIfAbsent, remove, replace, replace, replaceChars, replaceChars, setDefaultReturnValueclear, containsKey, containsValue, isEmpty, size, toStringbuilder, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, forEach, merge, putAll, putAll, putIfAbsent, remove, replace, replace, replaceAll, synchronize, synchronize, unmodifiablepublic char put(char key,
char value)
Char2CharMapkey - the key that should be inserted,value - the value that should be insertedMap.put(Object, Object)public char putIfAbsent(char key,
char value)
Char2CharMapkey - the key that should be inserted,value - the value that should be insertedMap.putIfAbsent(Object, Object)public char addTo(char key,
char value)
Char2CharMapkey - the key that should be inserted,value - the value that should be inserted / addedpublic char subFrom(char key,
char value)
Char2CharMapChar2CharMap.getDefaultReturnValue()
If the fence is reached the element will be automaticall removedkey - that should be subtract fromvalue - that should be subtractpublic char remove(char key)
Char2CharMapkey - the element that should be removedpublic char removeOrDefault(char key,
char defaultValue)
Char2CharMapkey - 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,
char value)
Char2CharMapkey - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)public char get(char key)
Char2CharMapkey - the key that is searched forpublic char getOrDefault(char key,
char defaultValue)
Char2CharMapgetOrDefault in interface Char2CharMapgetOrDefault in class AbstractChar2CharMapkey - the key that is searched fordefaultValue - the value that should be returned if the key is not presentpublic char computeChar(char key,
CharCharUnaryOperator mappingFunction)
Char2CharMapcomputeChar in interface Char2CharMapcomputeChar in class AbstractChar2CharMapkey - the key that should be computedmappingFunction - the operator that should generate the valuepublic char computeCharIfAbsent(char key,
Char2CharFunction mappingFunction)
Char2CharMapcomputeCharIfAbsent in interface Char2CharMapcomputeCharIfAbsent in class AbstractChar2CharMapkey - the key that should be computedmappingFunction - the operator that should generate the value if not presentpublic char computeCharIfPresent(char key,
CharCharUnaryOperator mappingFunction)
Char2CharMapcomputeCharIfPresent in interface Char2CharMapcomputeCharIfPresent in class AbstractChar2CharMapkey - the key that should be computedmappingFunction - the operator that should generate the value if presentpublic char supplyCharIfAbsent(char key,
CharSupplier valueProvider)
Char2CharMapsupplyCharIfAbsent in interface Char2CharMapsupplyCharIfAbsent in class AbstractChar2CharMapkey - the key that should be computedvalueProvider - the value if not presentpublic char mergeChar(char key,
char value,
CharCharUnaryOperator mappingFunction)
Char2CharMapmergeChar in interface Char2CharMapmergeChar in class AbstractChar2CharMapkey - 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(Char2CharMap m, CharCharUnaryOperator mappingFunction)
Char2CharMapmergeAllChar in interface Char2CharMapmergeAllChar in class AbstractChar2CharMapm - the entries that should be bulk addedmappingFunction - the operator that should generate the new Valuepublic Char2CharMaps.SingletonMap copy()
Char2CharMapcopy in interface Char2CharMapcopy in class AbstractChar2CharMappublic CharSet keySet()
keySet in interface java.util.Map<java.lang.Character,java.lang.Character>keySet in interface Char2CharMapkeySet in class AbstractChar2CharMappublic CharCollection values()
values in interface java.util.Map<java.lang.Character,java.lang.Character>values in interface Char2CharMapvalues in class AbstractChar2CharMappublic ObjectSet<Char2CharMap.Entry> char2CharEntrySet()
Char2CharMap