public static class Double2CharMaps.UnmodifyableMap extends AbstractDouble2CharMap implements Double2CharMap
AbstractDouble2CharMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Double2CharMap.BuilderCache, Double2CharMap.Entry, Double2CharMap.FastEntrySet, Double2CharMap.MapBuilder| Modifier and Type | Method and Description |
|---|---|
char |
addTo(double key,
char value)
A Helper method to add a primitives together.
|
void |
clear() |
char |
computeChar(double key,
DoubleCharUnaryOperator mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
char |
computeCharIfAbsent(double key,
Double2CharFunction mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
char |
computeCharIfPresent(double key,
DoubleCharUnaryOperator mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
Double2CharMap |
copy()
A Function that does a shallow clone of the Map itself.
|
ObjectSet<Double2CharMap.Entry> |
double2CharEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
char |
get(double key)
A Type Specific get method to reduce boxing/unboxing
|
char |
getOrDefault(double key,
char defaultValue)
A Type Specific getOrDefault method to reduce boxing/unboxing
|
DoubleSet |
keySet() |
void |
mergeAllChar(Double2CharMap m,
CharCharUnaryOperator mappingFunction)
A Bulk method for merging Maps.
|
char |
mergeChar(double key,
char value,
CharCharUnaryOperator mappingFunction)
A Type Specific merge method to reduce boxing/unboxing
|
char |
put(double key,
char value)
Type Specific method to reduce boxing/unboxing of values
|
char |
putIfAbsent(double key,
char value)
Type Specific method to reduce boxing/unboxing of values
|
char |
remove(double key)
Type Specific remove function to reduce boxing/unboxing
|
boolean |
remove(double key,
char value)
Type Specific remove function to reduce boxing/unboxing
|
char |
removeOrDefault(double key,
char defaultValue)
Type-Specific Remove function with a default return value if wanted.
|
void |
replaceChars(Double2CharMap m)
Type-Specific bulk replace method.
|
void |
replaceChars(DoubleCharUnaryOperator mappingFunction)
A Type Specific mass replace method to reduce boxing/unboxing
|
char |
subFrom(double key,
char value)
A Helper method to subtract from primitive from each other.
|
char |
supplyCharIfAbsent(double 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, setDefaultReturnValuecontainsKey, containsValue, isEmpty, size, toStringaddToAll, applyAsChar, builder, compute, computeIfAbsent, computeIfPresent, containsKey, containsKey, containsValue, containsValue, entrySet, forEach, forEach, get, getDefaultReturnValue, getOrDefault, merge, put, put, put, putAll, putAll, putAll, putAll, putAll, putAllIfAbsent, putIfAbsent, remove, remove, replace, replace, replace, replace, replaceAll, setDefaultReturnValue, synchronize, synchronize, unmodifiablepublic char put(double key,
char value)
Double2CharMapput in interface Double2CharMapkey - the key that should be inserted,value - the value that should be insertedMap.put(Object, Object)public char putIfAbsent(double key,
char value)
Double2CharMapputIfAbsent in interface Double2CharMapkey - the key that should be inserted,value - the value that should be insertedMap.putIfAbsent(Object, Object)public char addTo(double key,
char value)
Double2CharMapaddTo in interface Double2CharMapkey - the key that should be inserted,value - the value that should be inserted / addedpublic char subFrom(double key,
char value)
Double2CharMapDouble2CharMap.getDefaultReturnValue()
If the fence is reached the element will be automaticall removedsubFrom in interface Double2CharMapkey - that should be subtract fromvalue - that should be subtractpublic char remove(double key)
Double2CharMapremove in interface Double2CharMapkey - the element that should be removedpublic char removeOrDefault(double key,
char defaultValue)
Double2CharMapremoveOrDefault in interface Double2CharMapkey - the element that should be removeddefaultValue - the value that should be returned if the entry doesn't existMap.remove(Object, Object)public boolean remove(double key,
char value)
Double2CharMapremove in interface Double2CharMapkey - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)public char get(double key)
Double2CharMapget in interface Double2CharMapkey - the key that is searched forpublic char getOrDefault(double key,
char defaultValue)
Double2CharMapgetOrDefault in interface Double2CharMapgetOrDefault in class AbstractDouble2CharMapkey - the key that is searched fordefaultValue - the value that should be returned if the key is not presentpublic char computeChar(double key,
DoubleCharUnaryOperator mappingFunction)
Double2CharMapcomputeChar in interface Double2CharMapcomputeChar in class AbstractDouble2CharMapkey - the key that should be computedmappingFunction - the operator that should generate the valuepublic char computeCharIfAbsent(double key,
Double2CharFunction mappingFunction)
Double2CharMapcomputeCharIfAbsent in interface Double2CharMapcomputeCharIfAbsent in class AbstractDouble2CharMapkey - the key that should be computedmappingFunction - the operator that should generate the value if not presentpublic char computeCharIfPresent(double key,
DoubleCharUnaryOperator mappingFunction)
Double2CharMapcomputeCharIfPresent in interface Double2CharMapcomputeCharIfPresent in class AbstractDouble2CharMapkey - the key that should be computedmappingFunction - the operator that should generate the value if presentpublic char supplyCharIfAbsent(double key,
CharSupplier valueProvider)
Double2CharMapsupplyCharIfAbsent in interface Double2CharMapsupplyCharIfAbsent in class AbstractDouble2CharMapkey - the key that should be computedvalueProvider - the value if not presentpublic char mergeChar(double key,
char value,
CharCharUnaryOperator mappingFunction)
Double2CharMapmergeChar in interface Double2CharMapmergeChar in class AbstractDouble2CharMapkey - 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(Double2CharMap m, CharCharUnaryOperator mappingFunction)
Double2CharMapmergeAllChar in interface Double2CharMapmergeAllChar in class AbstractDouble2CharMapm - the entries that should be bulk addedmappingFunction - the operator that should generate the new Valuepublic void replaceChars(DoubleCharUnaryOperator mappingFunction)
Double2CharMapreplaceChars in interface Double2CharMapreplaceChars in class AbstractDouble2CharMapmappingFunction - operation to replace all valuespublic void replaceChars(Double2CharMap m)
Double2CharMapreplaceChars in interface Double2CharMapreplaceChars in class AbstractDouble2CharMapm - elements that should be replaced.public Double2CharMap copy()
Double2CharMapcopy in interface Double2CharMapcopy in class AbstractDouble2CharMappublic void clear()
clear in interface java.util.Map<java.lang.Double,java.lang.Character>clear in class java.util.AbstractMap<java.lang.Double,java.lang.Character>public DoubleSet keySet()
keySet in interface java.util.Map<java.lang.Double,java.lang.Character>keySet in interface Double2CharMapkeySet in class AbstractDouble2CharMappublic CharCollection values()
values in interface java.util.Map<java.lang.Double,java.lang.Character>values in interface Double2CharMapvalues in class AbstractDouble2CharMappublic ObjectSet<Double2CharMap.Entry> double2CharEntrySet()
Double2CharMapdouble2CharEntrySet in interface Double2CharMap