public class Double2CharAVLTreeMap extends AbstractDouble2CharMap implements Double2CharNavigableMap
AbstractDouble2CharMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Double2CharSortedMap.FastSortedSetDouble2CharMap.BuilderCache, Double2CharMap.Entry, Double2CharMap.FastEntrySet, Double2CharMap.MapBuilder| Constructor and Description |
|---|
Double2CharAVLTreeMap()
Default Constructor
|
Double2CharAVLTreeMap(double[] keys,
char[] values)
Helper constructor that allow to create a map from unboxed values
|
Double2CharAVLTreeMap(double[] keys,
char[] values,
DoubleComparator comp)
Helper constructor that has a custom sorter and allow to create a map from unboxed values
|
Double2CharAVLTreeMap(java.lang.Double[] keys,
java.lang.Character[] values)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Double2CharAVLTreeMap(java.lang.Double[] keys,
java.lang.Character[] values,
DoubleComparator comp)
Helper constructor that has a custom sorter and allow to create a map from boxed values (it will unbox them)
|
Double2CharAVLTreeMap(Double2CharMap map)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Double2CharAVLTreeMap(Double2CharMap map,
DoubleComparator comp)
A Type Specific Helper function that has a custom sorter and allows to create a new Map with exactly the same values as the provided map.
|
Double2CharAVLTreeMap(DoubleComparator comp)
Constructor that allows to define the sorter
|
Double2CharAVLTreeMap(java.util.Map<? extends java.lang.Double,? extends java.lang.Character> map)
A Helper constructor that allows to create a Map with exactly the same values as the provided map.
|
Double2CharAVLTreeMap(java.util.Map<? extends java.lang.Double,? extends java.lang.Character> map,
DoubleComparator comp)
A Helper constructor that has a custom sorter and allows to create a Map with exactly the same values as the provided map.
|
| Modifier and Type | Method and Description |
|---|---|
char |
addTo(double key,
char value)
A Helper method to add a primitives together.
|
Double2CharMap.Entry |
ceilingEntry(double key)
A Type Specific ceilingEntry method to reduce boxing/unboxing.
|
double |
ceilingKey(double e)
A Type Specific ceilingKey method to reduce boxing/unboxing.
|
void |
clear() |
DoubleComparator |
comparator() |
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
|
boolean |
containsKey(double key)
Type Specific method to reduce boxing/unboxing of values
|
Double2CharAVLTreeMap |
copy()
A Function that does a shallow clone of the Map itself.
|
DoubleNavigableSet |
descendingKeySet() |
Double2CharNavigableMap |
descendingMap() |
ObjectSet<Double2CharMap.Entry> |
double2CharEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
char |
firstCharValue()
A method to get the first Value of a Map.
|
double |
firstDoubleKey()
A method to get the first Key of a Map.
|
Double2CharMap.Entry |
firstEntry() |
Double2CharMap.Entry |
floorEntry(double key)
A Type Specific floorEntry method to reduce boxing/unboxing.
|
double |
floorKey(double e)
A Type Specific floorKey method to reduce boxing/unboxing.
|
void |
forEach(DoubleCharConsumer action)
Type Specific forEach method to reduce boxing/unboxing
|
char |
get(double key)
A Type Specific get method to reduce boxing/unboxing
|
double |
getDefaultMaxValue()
A Helper method to get the max value for SubMaps.
|
double |
getDefaultMinValue()
A Helper method to get the min value for SubMaps.
|
char |
getOrDefault(double key,
char defaultValue)
A Type Specific getOrDefault method to reduce boxing/unboxing
|
Double2CharNavigableMap |
headMap(double toKey,
boolean inclusive)
A Type Specific HeadMap method to reduce boxing/unboxing
|
Double2CharMap.Entry |
higherEntry(double key)
A Type Specific higherEntry method to reduce boxing/unboxing.
|
double |
higherKey(double e)
A Type Specific higherKey method to reduce boxing/unboxing.
|
DoubleNavigableSet |
keySet() |
char |
lastCharValue()
A method to get the last Value of a Map.
|
double |
lastDoubleKey()
A method to get the last Key of a Map.
|
Double2CharMap.Entry |
lastEntry() |
Double2CharMap.Entry |
lowerEntry(double key)
A Type Specific lowerEntry method to reduce boxing/unboxing.
|
double |
lowerKey(double e)
A Type Specific lowerKey method to reduce boxing/unboxing.
|
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
|
DoubleNavigableSet |
navigableKeySet() |
double |
pollFirstDoubleKey()
A method to get and remove the first Key of a Map.
|
Double2CharMap.Entry |
pollFirstEntry() |
double |
pollLastDoubleKey()
A method to get and remove the last Key of a Map.
|
Double2CharMap.Entry |
pollLastEntry() |
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 |
replace(double key,
char value)
A Type Specific replace method to reduce boxing/unboxing replace an existing value
|
boolean |
replace(double key,
char oldValue,
char newValue)
A Type Specific replace method to replace an existing value
|
void |
setDefaultMaxValue(double value)
A Helper method to set the max value for SubMaps.
|
void |
setDefaultMinValue(double value)
A Helper method to set the min value for SubMaps.
|
int |
size() |
char |
subFrom(double key,
char value)
A Helper method to subtract from primitive from each other.
|
Double2CharNavigableMap |
subMap(double fromKey,
boolean fromInclusive,
double toKey,
boolean toInclusive)
A Type Specific SubMap method to reduce boxing/unboxing
|
char |
supplyCharIfAbsent(double key,
CharSupplier valueProvider)
A Supplier based computeIfAbsent function to fill the most used usecase of this function
|
Double2CharNavigableMap |
tailMap(double fromKey,
boolean inclusive)
A Type Specific TailMap method to reduce boxing/unboxing
|
CharCollection |
values() |
addToAll, containsValue, entrySet, equals, get, getDefaultReturnValue, getOrDefault, hashCode, put, putAll, putAll, putAll, putAll, putAllIfAbsent, remove, replaceChars, replaceChars, setDefaultReturnValueceilingEntry, ceilingKey, floorEntry, floorKey, headMap, headMap, headMap, higherEntry, higherKey, lowerEntry, lowerKey, subMap, subMap, subMap, synchronize, synchronize, tailMap, tailMap, tailMap, unmodifiablefirstKey, lastKeyaddToAll, builder, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, containsValue, entrySet, forEach, get, getDefaultReturnValue, getOrDefault, merge, put, putAll, putAll, putAll, putAll, putAll, putAllIfAbsent, putIfAbsent, remove, remove, replace, replace, replaceAll, replaceChars, replaceChars, setDefaultReturnValuepublic Double2CharAVLTreeMap()
public Double2CharAVLTreeMap(DoubleComparator comp)
comp - the function that decides how the tree is sorted, can be nullpublic Double2CharAVLTreeMap(java.lang.Double[] keys,
java.lang.Character[] values)
keys - the keys that should be put into the mapvalues - the values that should be put into the map.java.lang.IllegalStateException - if the keys and values do not match in lenghtpublic Double2CharAVLTreeMap(java.lang.Double[] keys,
java.lang.Character[] values,
DoubleComparator comp)
keys - the keys that should be put into the mapvalues - the values that should be put into the map.comp - the function that decides how the tree is sorted, can be nulljava.lang.IllegalStateException - if the keys and values do not match in lenghtpublic Double2CharAVLTreeMap(double[] keys,
char[] values)
keys - the keys that should be put into the mapvalues - the values that should be put into the map.java.lang.IllegalStateException - if the keys and values do not match in lenghtpublic Double2CharAVLTreeMap(double[] keys,
char[] values,
DoubleComparator comp)
keys - the keys that should be put into the mapvalues - the values that should be put into the map.comp - the function that decides how the tree is sorted, can be nulljava.lang.IllegalStateException - if the keys and values do not match in lenghtpublic Double2CharAVLTreeMap(java.util.Map<? extends java.lang.Double,? extends java.lang.Character> map)
map - the values that should be present in the mappublic Double2CharAVLTreeMap(java.util.Map<? extends java.lang.Double,? extends java.lang.Character> map,
DoubleComparator comp)
map - the values that should be present in the mapcomp - the function that decides how the tree is sorted, can be nullpublic Double2CharAVLTreeMap(Double2CharMap map)
map - the values that should be present in the mappublic Double2CharAVLTreeMap(Double2CharMap map, DoubleComparator comp)
map - the values that should be present in the mapcomp - the function that decides how the tree is sorted, can be nullpublic void setDefaultMaxValue(double value)
Double2CharNavigableMapsetDefaultMaxValue in interface Double2CharNavigableMapvalue - the new max valuepublic double getDefaultMaxValue()
Double2CharNavigableMapgetDefaultMaxValue in interface Double2CharNavigableMappublic void setDefaultMinValue(double value)
Double2CharNavigableMapsetDefaultMinValue in interface Double2CharNavigableMapvalue - the new min valuepublic double getDefaultMinValue()
Double2CharNavigableMapgetDefaultMinValue in interface Double2CharNavigableMappublic 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 DoubleComparator comparator()
comparator in interface java.util.SortedMap<java.lang.Double,java.lang.Character>comparator in interface Double2CharSortedMappublic boolean containsKey(double key)
Double2CharMapcontainsKey in interface Double2CharMapcontainsKey in class AbstractDouble2CharMapkey - element that is searched forpublic char get(double key)
Double2CharMapget in interface Double2CharFunctionget 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 double firstDoubleKey()
Double2CharSortedMapfirstDoubleKey in interface Double2CharSortedMappublic double pollFirstDoubleKey()
Double2CharSortedMappollFirstDoubleKey in interface Double2CharSortedMappublic double lastDoubleKey()
Double2CharSortedMaplastDoubleKey in interface Double2CharSortedMappublic double pollLastDoubleKey()
Double2CharSortedMappollLastDoubleKey in interface Double2CharSortedMappublic Double2CharMap.Entry firstEntry()
firstEntry in interface java.util.NavigableMap<java.lang.Double,java.lang.Character>firstEntry in interface Double2CharNavigableMappublic Double2CharMap.Entry lastEntry()
lastEntry in interface java.util.NavigableMap<java.lang.Double,java.lang.Character>lastEntry in interface Double2CharNavigableMappublic Double2CharMap.Entry pollFirstEntry()
pollFirstEntry in interface java.util.NavigableMap<java.lang.Double,java.lang.Character>pollFirstEntry in interface Double2CharNavigableMappublic Double2CharMap.Entry pollLastEntry()
pollLastEntry in interface java.util.NavigableMap<java.lang.Double,java.lang.Character>pollLastEntry in interface Double2CharNavigableMappublic char firstCharValue()
Double2CharSortedMapfirstCharValue in interface Double2CharSortedMappublic char lastCharValue()
Double2CharSortedMaplastCharValue in interface Double2CharSortedMappublic 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 boolean replace(double key,
char oldValue,
char newValue)
Double2CharMapreplace in interface Double2CharMapreplace in class AbstractDouble2CharMapkey - the element that should be searched foroldValue - the expected value to be replacednewValue - the value to replace the oldValue with.public char replace(double key,
char value)
Double2CharMapreplace in interface Double2CharMapreplace in class AbstractDouble2CharMapkey - the element that should be searched forvalue - the value to replace with.public 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 supplyCharIfAbsent(double key,
CharSupplier valueProvider)
Double2CharMapsupplyCharIfAbsent in interface Double2CharMapsupplyCharIfAbsent in class AbstractDouble2CharMapkey - the key that should be computedvalueProvider - 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 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 forEach(DoubleCharConsumer action)
Double2CharMapforEach in interface Double2CharMapforEach in class AbstractDouble2CharMapaction - processor of the values that are iterator overpublic int size()
size in interface java.util.Map<java.lang.Double,java.lang.Character>size in class java.util.AbstractMap<java.lang.Double,java.lang.Character>public 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 Double2CharAVLTreeMap copy()
Double2CharMapcopy in interface Double2CharMapcopy in interface Double2CharNavigableMapcopy in interface Double2CharSortedMapcopy in class AbstractDouble2CharMappublic DoubleNavigableSet keySet()
keySet in interface java.util.Map<java.lang.Double,java.lang.Character>keySet in interface java.util.SortedMap<java.lang.Double,java.lang.Character>keySet in interface Double2CharMapkeySet in interface Double2CharNavigableMapkeySet in interface Double2CharSortedMapkeySet in class AbstractDouble2CharMappublic ObjectSet<Double2CharMap.Entry> double2CharEntrySet()
Double2CharMapdouble2CharEntrySet in interface Double2CharMappublic CharCollection values()
values in interface java.util.Map<java.lang.Double,java.lang.Character>values in interface java.util.SortedMap<java.lang.Double,java.lang.Character>values in interface Double2CharMapvalues in interface Double2CharSortedMapvalues in class AbstractDouble2CharMappublic DoubleNavigableSet navigableKeySet()
navigableKeySet in interface java.util.NavigableMap<java.lang.Double,java.lang.Character>navigableKeySet in interface Double2CharNavigableMappublic Double2CharNavigableMap descendingMap()
descendingMap in interface java.util.NavigableMap<java.lang.Double,java.lang.Character>descendingMap in interface Double2CharNavigableMappublic DoubleNavigableSet descendingKeySet()
descendingKeySet in interface java.util.NavigableMap<java.lang.Double,java.lang.Character>descendingKeySet in interface Double2CharNavigableMappublic Double2CharNavigableMap subMap(double fromKey, boolean fromInclusive, double toKey, boolean toInclusive)
Double2CharNavigableMapsubMap in interface Double2CharNavigableMapfromKey - where the submap should startfromInclusive - if the fromKey is inclusive or nottoKey - where the subMap should endtoInclusive - if the toKey is inclusive or notpublic Double2CharNavigableMap headMap(double toKey, boolean inclusive)
Double2CharNavigableMapheadMap in interface Double2CharNavigableMaptoKey - where the HeadMap should endinclusive - if the toKey is inclusive or notpublic Double2CharNavigableMap tailMap(double fromKey, boolean inclusive)
Double2CharNavigableMaptailMap in interface Double2CharNavigableMapfromKey - where the TailMap should startinclusive - if the fromKey is inclusive or notpublic double lowerKey(double e)
Double2CharNavigableMaplowerKey in interface Double2CharNavigableMape - that should be compared with.public double floorKey(double e)
Double2CharNavigableMapfloorKey in interface Double2CharNavigableMape - that should be compared with.public double higherKey(double e)
Double2CharNavigableMaphigherKey in interface Double2CharNavigableMape - that should be compared with.public double ceilingKey(double e)
Double2CharNavigableMapceilingKey in interface Double2CharNavigableMape - that should be compared with.public Double2CharMap.Entry lowerEntry(double key)
Double2CharNavigableMaplowerEntry in interface Double2CharNavigableMapkey - that should be compared with.public Double2CharMap.Entry higherEntry(double key)
Double2CharNavigableMaphigherEntry in interface Double2CharNavigableMapkey - that should be compared with.public Double2CharMap.Entry floorEntry(double key)
Double2CharNavigableMapfloorEntry in interface Double2CharNavigableMapkey - that should be compared with.public Double2CharMap.Entry ceilingEntry(double key)
Double2CharNavigableMapceilingEntry in interface Double2CharNavigableMapkey - that should be compared with.