public class Char2DoubleRBTreeMap extends AbstractChar2DoubleMap implements Char2DoubleNavigableMap
AbstractChar2DoubleMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Char2DoubleSortedMap.FastSortedSetChar2DoubleMap.FastEntrySet| Constructor and Description |
|---|
Char2DoubleRBTreeMap()
Default Constructor
|
Char2DoubleRBTreeMap(char[] keys,
double[] values)
Helper constructor that allow to create a map from unboxed values
|
Char2DoubleRBTreeMap(char[] keys,
double[] values,
CharComparator comp)
Helper constructor that has a custom sorter and allow to create a map from unboxed values
|
Char2DoubleRBTreeMap(Char2DoubleMap map)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Char2DoubleRBTreeMap(Char2DoubleMap map,
CharComparator 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.
|
Char2DoubleRBTreeMap(java.lang.Character[] keys,
java.lang.Double[] values)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Char2DoubleRBTreeMap(java.lang.Character[] keys,
java.lang.Double[] values,
CharComparator comp)
Helper constructor that has a custom sorter and allow to create a map from boxed values (it will unbox them)
|
Char2DoubleRBTreeMap(CharComparator comp)
Constructor that allows to define the sorter
|
Char2DoubleRBTreeMap(java.util.Map<? extends java.lang.Character,? extends java.lang.Double> map)
A Helper constructor that allows to create a Map with exactly the same values as the provided map.
|
Char2DoubleRBTreeMap(java.util.Map<? extends java.lang.Character,? extends java.lang.Double> map,
CharComparator 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 |
|---|---|
double |
addTo(char key,
double value)
A Helper method to add a primitives together.
|
Char2DoubleMap.Entry |
ceilingEntry(char key)
A Type Specific ceilingEntry method to reduce boxing/unboxing.
|
char |
ceilingKey(char e)
A Type Specific ceilingKey method to reduce boxing/unboxing.
|
ObjectSet<Char2DoubleMap.Entry> |
char2DoubleEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
void |
clear() |
CharComparator |
comparator() |
double |
computeDouble(char key,
CharDoubleUnaryOperator mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
double |
computeDoubleIfAbsent(char key,
Char2DoubleFunction mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
double |
computeDoubleIfPresent(char key,
CharDoubleUnaryOperator mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
boolean |
containsKey(char key)
Type Specific method to reduce boxing/unboxing of values
|
CharNavigableSet |
descendingKeySet() |
Char2DoubleNavigableMap |
descendingMap() |
char |
firstCharKey()
A method to get the first Key of a Map.
|
double |
firstDoubleValue()
A method to get the first Value of a Map.
|
Char2DoubleMap.Entry |
firstEntry() |
Char2DoubleMap.Entry |
floorEntry(char key)
A Type Specific floorEntry method to reduce boxing/unboxing.
|
char |
floorKey(char e)
A Type Specific floorKey method to reduce boxing/unboxing.
|
double |
getAndMoveToFirst(char key)
A Specific get method that allows to move teh given key/value int the first index.
|
double |
getAndMoveToLast(char key)
A Specific get method that allows to move teh given key/value int the last index.
|
char |
getDefaultMaxValue()
A Helper method to get the max value for SubMaps.
|
char |
getDefaultMinValue()
A Helper method to get the min value for SubMaps.
|
double |
getDouble(char key)
A Type Specific get method to reduce boxing/unboxing
|
double |
getOrDefault(char key,
double defaultValue)
A Type Specific getOrDefault method to reduce boxing/unboxing
|
Char2DoubleNavigableMap |
headMap(char toKey,
boolean inclusive)
A Type Specific HeadMap method to reduce boxing/unboxing
|
Char2DoubleMap.Entry |
higherEntry(char key)
A Type Specific higherEntry method to reduce boxing/unboxing.
|
char |
higherKey(char e)
A Type Specific higherKey method to reduce boxing/unboxing.
|
CharSortedSet |
keySet() |
char |
lastCharKey()
A method to get the last Key of a Map.
|
double |
lastDoubleValue()
A method to get the last Value of a Map.
|
Char2DoubleMap.Entry |
lastEntry() |
Char2DoubleMap.Entry |
lowerEntry(char key)
A Type Specific lowerEntry method to reduce boxing/unboxing.
|
char |
lowerKey(char e)
A Type Specific lowerKey method to reduce boxing/unboxing.
|
void |
mergeAllDouble(Char2DoubleMap m,
DoubleDoubleUnaryOperator mappingFunction)
A Bulk method for merging Maps.
|
double |
mergeDouble(char key,
double value,
DoubleDoubleUnaryOperator mappingFunction)
A Type Specific merge method to reduce boxing/unboxing
|
boolean |
moveToFirst(char key)
A specific move method to move a given key/value to the first index.
|
boolean |
moveToLast(char key)
A specific move method to move a given key/value to the last index.
|
CharNavigableSet |
navigableKeySet() |
char |
pollFirstCharKey()
A method to get and remove the first Key of a Map.
|
Char2DoubleMap.Entry |
pollFirstEntry() |
char |
pollLastCharKey()
A method to get and remove the last Key of a Map.
|
Char2DoubleMap.Entry |
pollLastEntry() |
double |
put(char key,
double value)
Type Specific method to reduce boxing/unboxing of values
|
double |
putAndMoveToFirst(char key,
double value)
A customized put method that allows you to insert into the first index.
|
double |
putAndMoveToLast(char key,
double value)
A customized put method that allows you to insert into the last index.
|
double |
putIfAbsent(char key,
double value)
Type Specific method to reduce boxing/unboxing of values
|
double |
remChar(char key)
Type Specific remove function to reduce boxing/unboxing
|
double |
remCharOrDefault(char key,
double defaultValue)
Type-Specific Remove function with a default return value if wanted.
|
boolean |
remove(char key,
double value)
Type Specific remove function to reduce boxing/unboxing
|
double |
replace(char key,
double value)
A Type Specific replace method to reduce boxing/unboxing replace an existing value
|
boolean |
replace(char key,
double oldValue,
double newValue)
A Type Specific replace method to replace an existing value
|
void |
setDefaultMaxValue(char value)
A Helper method to set the max value for SubMaps.
|
void |
setDefaultMinValue(char value)
A Helper method to set the min value for SubMaps.
|
int |
size() |
Char2DoubleNavigableMap |
subMap(char fromKey,
boolean fromInclusive,
char toKey,
boolean toInclusive)
A Type Specific SubMap method to reduce boxing/unboxing
|
Char2DoubleNavigableMap |
tailMap(char fromKey,
boolean inclusive)
A Type Specific TailMap method to reduce boxing/unboxing
|
DoubleCollection |
values() |
addToAll, containsValue, entrySet, equals, forEach, get, getDefaultReturnValue, getOrDefault, hashCode, putAll, putAll, putAll, putAllIfAbsent, replaceDoubles, replaceDoubles, setDefaultReturnValuecontainsKey, containsValue, isEmpty, put, remove, toStringceilingEntry, ceilingKey, floorEntry, floorKey, headMap, headMap, headMap, higherEntry, higherKey, lowerEntry, lowerKey, subMap, subMap, subMap, tailMap, tailMap, tailMapfirstKey, lastKeyaddToAll, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, containsValue, entrySet, forEach, forEach, get, getDefaultReturnValue, getOrDefault, merge, put, putAll, putAll, putAll, putAllIfAbsent, putIfAbsent, remove, remove, replace, replace, replaceAll, replaceDoubles, replaceDoubles, setDefaultReturnValuepublic Char2DoubleRBTreeMap()
public Char2DoubleRBTreeMap(CharComparator comp)
comp - the function that decides how the tree is sorted, can be nullpublic Char2DoubleRBTreeMap(java.lang.Character[] keys,
java.lang.Double[] 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 Char2DoubleRBTreeMap(java.lang.Character[] keys,
java.lang.Double[] values,
CharComparator 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 Char2DoubleRBTreeMap(char[] keys,
double[] 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 Char2DoubleRBTreeMap(char[] keys,
double[] values,
CharComparator 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 Char2DoubleRBTreeMap(java.util.Map<? extends java.lang.Character,? extends java.lang.Double> map)
map - the values that should be present in the mappublic Char2DoubleRBTreeMap(java.util.Map<? extends java.lang.Character,? extends java.lang.Double> map,
CharComparator comp)
map - the values that should be present in the mapcomp - the function that decides how the tree is sorted, can be nullpublic Char2DoubleRBTreeMap(Char2DoubleMap map)
map - the values that should be present in the mappublic Char2DoubleRBTreeMap(Char2DoubleMap map, CharComparator 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(char value)
Char2DoubleNavigableMapsetDefaultMaxValue in interface Char2DoubleNavigableMapvalue - the new max valuepublic char getDefaultMaxValue()
Char2DoubleNavigableMapgetDefaultMaxValue in interface Char2DoubleNavigableMappublic void setDefaultMinValue(char value)
Char2DoubleNavigableMapsetDefaultMinValue in interface Char2DoubleNavigableMapvalue - the new min valuepublic char getDefaultMinValue()
Char2DoubleNavigableMapgetDefaultMinValue in interface Char2DoubleNavigableMappublic double put(char key,
double value)
Char2DoubleMapput in interface Char2DoubleMapkey - the key that should be inserted,value - the value that should be insertedMap.put(Object, Object)public double putIfAbsent(char key,
double value)
Char2DoubleMapputIfAbsent in interface Char2DoubleMapkey - the key that should be inserted,value - the value that should be insertedMap.putIfAbsent(Object, Object)public double addTo(char key,
double value)
Char2DoubleMapaddTo in interface Char2DoubleMapkey - the key that should be inserted,value - the value that should be inserted / addedpublic double putAndMoveToFirst(char key,
double value)
Char2DoubleSortedMapputAndMoveToFirst in interface Char2DoubleSortedMapkey - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public double putAndMoveToLast(char key,
double value)
Char2DoubleSortedMapputAndMoveToLast in interface Char2DoubleSortedMapkey - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public boolean moveToFirst(char key)
Char2DoubleSortedMapmoveToFirst in interface Char2DoubleSortedMapkey - that should be moved to the first indexpublic boolean moveToLast(char key)
Char2DoubleSortedMapmoveToLast in interface Char2DoubleSortedMapkey - that should be moved to the first lastpublic double getAndMoveToFirst(char key)
Char2DoubleSortedMapgetAndMoveToFirst in interface Char2DoubleSortedMapkey - that is searched forpublic double getAndMoveToLast(char key)
Char2DoubleSortedMapgetAndMoveToLast in interface Char2DoubleSortedMapkey - that is searched forpublic CharComparator comparator()
comparator in interface java.util.SortedMap<java.lang.Character,java.lang.Double>comparator in interface Char2DoubleSortedMappublic boolean containsKey(char key)
Char2DoubleMapcontainsKey in interface Char2DoubleMapcontainsKey in class AbstractChar2DoubleMapkey - element that is searched forpublic double getDouble(char key)
Char2DoubleMapgetDouble in interface Char2DoubleFunctiongetDouble in interface Char2DoubleMapkey - the key that is searched forpublic double getOrDefault(char key,
double defaultValue)
Char2DoubleMapgetOrDefault in interface Char2DoubleMapgetOrDefault in class AbstractChar2DoubleMapkey - the key that is searched fordefaultValue - the value that should be returned if the key is not presentpublic char firstCharKey()
Char2DoubleSortedMapfirstCharKey in interface Char2DoubleSortedMappublic char pollFirstCharKey()
Char2DoubleSortedMappollFirstCharKey in interface Char2DoubleSortedMappublic char lastCharKey()
Char2DoubleSortedMaplastCharKey in interface Char2DoubleSortedMappublic char pollLastCharKey()
Char2DoubleSortedMappollLastCharKey in interface Char2DoubleSortedMappublic Char2DoubleMap.Entry firstEntry()
firstEntry in interface java.util.NavigableMap<java.lang.Character,java.lang.Double>firstEntry in interface Char2DoubleNavigableMappublic Char2DoubleMap.Entry lastEntry()
lastEntry in interface java.util.NavigableMap<java.lang.Character,java.lang.Double>lastEntry in interface Char2DoubleNavigableMappublic Char2DoubleMap.Entry pollFirstEntry()
pollFirstEntry in interface java.util.NavigableMap<java.lang.Character,java.lang.Double>pollFirstEntry in interface Char2DoubleNavigableMappublic Char2DoubleMap.Entry pollLastEntry()
pollLastEntry in interface java.util.NavigableMap<java.lang.Character,java.lang.Double>pollLastEntry in interface Char2DoubleNavigableMappublic double firstDoubleValue()
Char2DoubleSortedMapfirstDoubleValue in interface Char2DoubleSortedMappublic double lastDoubleValue()
Char2DoubleSortedMaplastDoubleValue in interface Char2DoubleSortedMappublic double remChar(char key)
Char2DoubleMapremChar in interface Char2DoubleMapkey - the element that should be removedpublic double remCharOrDefault(char key,
double defaultValue)
Char2DoubleMapremCharOrDefault in interface Char2DoubleMapkey - 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,
double value)
Char2DoubleMapremove in interface Char2DoubleMapkey - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)public boolean replace(char key,
double oldValue,
double newValue)
Char2DoubleMapreplace in interface Char2DoubleMapreplace in class AbstractChar2DoubleMapkey - the element that should be searched foroldValue - the expected value to be replacednewValue - the value to replace the oldValue with.public double replace(char key,
double value)
Char2DoubleMapreplace in interface Char2DoubleMapreplace in class AbstractChar2DoubleMapkey - the element that should be searched forvalue - the value to replace with.public double computeDouble(char key,
CharDoubleUnaryOperator mappingFunction)
Char2DoubleMapcomputeDouble in interface Char2DoubleMapcomputeDouble in class AbstractChar2DoubleMapkey - the key that should be computedmappingFunction - the operator that should generate the valuepublic double computeDoubleIfAbsent(char key,
Char2DoubleFunction mappingFunction)
Char2DoubleMapcomputeDoubleIfAbsent in interface Char2DoubleMapcomputeDoubleIfAbsent in class AbstractChar2DoubleMapkey - the key that should be computedmappingFunction - the operator that should generate the value if not presentpublic double computeDoubleIfPresent(char key,
CharDoubleUnaryOperator mappingFunction)
Char2DoubleMapcomputeDoubleIfPresent in interface Char2DoubleMapcomputeDoubleIfPresent in class AbstractChar2DoubleMapkey - the key that should be computedmappingFunction - the operator that should generate the value if presentpublic double mergeDouble(char key,
double value,
DoubleDoubleUnaryOperator mappingFunction)
Char2DoubleMapmergeDouble in interface Char2DoubleMapmergeDouble in class AbstractChar2DoubleMapkey - the key that should be be searched forvalue - the value that should be merged withmappingFunction - the operator that should generate the new Valuepublic void mergeAllDouble(Char2DoubleMap m, DoubleDoubleUnaryOperator mappingFunction)
Char2DoubleMapmergeAllDouble in interface Char2DoubleMapmergeAllDouble in class AbstractChar2DoubleMapm - the entries that should be bulk addedmappingFunction - the operator that should generate the new Valuepublic int size()
size in interface java.util.Map<java.lang.Character,java.lang.Double>size in class java.util.AbstractMap<java.lang.Character,java.lang.Double>public void clear()
clear in interface java.util.Map<java.lang.Character,java.lang.Double>clear in class java.util.AbstractMap<java.lang.Character,java.lang.Double>public CharSortedSet keySet()
keySet in interface java.util.Map<java.lang.Character,java.lang.Double>keySet in interface java.util.SortedMap<java.lang.Character,java.lang.Double>keySet in interface Char2DoubleMapkeySet in interface Char2DoubleSortedMapkeySet in class AbstractChar2DoubleMappublic ObjectSet<Char2DoubleMap.Entry> char2DoubleEntrySet()
Char2DoubleMapchar2DoubleEntrySet in interface Char2DoubleMappublic DoubleCollection values()
values in interface java.util.Map<java.lang.Character,java.lang.Double>values in interface java.util.SortedMap<java.lang.Character,java.lang.Double>values in interface Char2DoubleMapvalues in interface Char2DoubleSortedMapvalues in class AbstractChar2DoubleMappublic CharNavigableSet navigableKeySet()
navigableKeySet in interface java.util.NavigableMap<java.lang.Character,java.lang.Double>navigableKeySet in interface Char2DoubleNavigableMappublic Char2DoubleNavigableMap descendingMap()
descendingMap in interface java.util.NavigableMap<java.lang.Character,java.lang.Double>descendingMap in interface Char2DoubleNavigableMappublic CharNavigableSet descendingKeySet()
descendingKeySet in interface java.util.NavigableMap<java.lang.Character,java.lang.Double>descendingKeySet in interface Char2DoubleNavigableMappublic Char2DoubleNavigableMap subMap(char fromKey, boolean fromInclusive, char toKey, boolean toInclusive)
Char2DoubleNavigableMapsubMap in interface Char2DoubleNavigableMapfromKey - where the submap should startfromInclusive - if the fromKey is inclusive or nottoKey - where the subMap should endtoInclusive - if the toKey is inclusive or notpublic Char2DoubleNavigableMap headMap(char toKey, boolean inclusive)
Char2DoubleNavigableMapheadMap in interface Char2DoubleNavigableMaptoKey - where the HeadMap should endinclusive - if the toKey is inclusive or notpublic Char2DoubleNavigableMap tailMap(char fromKey, boolean inclusive)
Char2DoubleNavigableMaptailMap in interface Char2DoubleNavigableMapfromKey - where the TailMap should startinclusive - if the fromKey is inclusive or notpublic char lowerKey(char e)
Char2DoubleNavigableMaplowerKey in interface Char2DoubleNavigableMape - that should be compared with.public char floorKey(char e)
Char2DoubleNavigableMapfloorKey in interface Char2DoubleNavigableMape - that should be compared with.public char higherKey(char e)
Char2DoubleNavigableMaphigherKey in interface Char2DoubleNavigableMape - that should be compared with.public char ceilingKey(char e)
Char2DoubleNavigableMapceilingKey in interface Char2DoubleNavigableMape - that should be compared with.public Char2DoubleMap.Entry lowerEntry(char key)
Char2DoubleNavigableMaplowerEntry in interface Char2DoubleNavigableMapkey - that should be compared with.public Char2DoubleMap.Entry higherEntry(char key)
Char2DoubleNavigableMaphigherEntry in interface Char2DoubleNavigableMapkey - that should be compared with.public Char2DoubleMap.Entry floorEntry(char key)
Char2DoubleNavigableMapfloorEntry in interface Char2DoubleNavigableMapkey - that should be compared with.public Char2DoubleMap.Entry ceilingEntry(char key)
Char2DoubleNavigableMapceilingEntry in interface Char2DoubleNavigableMapkey - that should be compared with.