public static class Double2CharMaps.SingletonMap extends AbstractDouble2CharMap
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.
|
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
|
Double2CharMaps.SingletonMap |
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.
|
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, replaceChars, replaceChars, setDefaultReturnValueclear, containsKey, containsValue, isEmpty, size, toStringapplyAsChar, builder, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, forEach, merge, put, put, putAll, putAll, putIfAbsent, remove, replace, replace, replaceAll, synchronize, synchronize, unmodifiablepublic char put(double key,
char value)
Double2CharMapkey - the key that should be inserted,value - the value that should be insertedMap.put(Object, Object)public char putIfAbsent(double key,
char value)
Double2CharMapkey - the key that should be inserted,value - the value that should be insertedMap.putIfAbsent(Object, Object)public char addTo(double key,
char value)
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 removedkey - that should be subtract fromvalue - that should be subtractpublic char remove(double key)
Double2CharMapkey - the element that should be removedpublic char removeOrDefault(double key,
char defaultValue)
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)
Double2CharMapkey - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)public char get(double key)
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 Double2CharMaps.SingletonMap copy()
Double2CharMapcopy in interface Double2CharMapcopy in class AbstractDouble2CharMappublic 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()
Double2CharMap