public class Float2DoubleRBTreeMap extends AbstractFloat2DoubleMap implements Float2DoubleNavigableMap
AbstractFloat2DoubleMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Float2DoubleSortedMap.FastSortedSetFloat2DoubleMap.FastEntrySet| Constructor and Description |
|---|
Float2DoubleRBTreeMap()
Default Constructor
|
Float2DoubleRBTreeMap(float[] keys,
double[] values)
Helper constructor that allow to create a map from unboxed values
|
Float2DoubleRBTreeMap(java.lang.Float[] keys,
java.lang.Double[] values)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Float2DoubleRBTreeMap(float[] keys,
double[] values,
FloatComparator comp)
Helper constructor that has a custom sorter and allow to create a map from unboxed values
|
Float2DoubleRBTreeMap(java.lang.Float[] keys,
java.lang.Double[] values,
FloatComparator comp)
Helper constructor that has a custom sorter and allow to create a map from boxed values (it will unbox them)
|
Float2DoubleRBTreeMap(Float2DoubleMap map)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Float2DoubleRBTreeMap(Float2DoubleMap map,
FloatComparator 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.
|
Float2DoubleRBTreeMap(FloatComparator comp)
Constructor that allows to define the sorter
|
Float2DoubleRBTreeMap(java.util.Map<? extends java.lang.Float,? extends java.lang.Double> map)
A Helper constructor that allows to create a Map with exactly the same values as the provided map.
|
Float2DoubleRBTreeMap(java.util.Map<? extends java.lang.Float,? extends java.lang.Double> map,
FloatComparator 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(float key,
double value)
A Helper method to add a primitives together.
|
Float2DoubleMap.Entry |
ceilingEntry(float key)
A Type Specific ceilingEntry method to reduce boxing/unboxing.
|
float |
ceilingKey(float e)
A Type Specific ceilingKey method to reduce boxing/unboxing.
|
void |
clear() |
FloatComparator |
comparator() |
double |
computeDouble(float key,
FloatDoubleUnaryOperator mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
double |
computeDoubleIfAbsent(float key,
Float2DoubleFunction mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
double |
computeDoubleIfPresent(float key,
FloatDoubleUnaryOperator mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
boolean |
containsKey(float key)
Type Specific method to reduce boxing/unboxing of values
|
FloatNavigableSet |
descendingKeySet() |
Float2DoubleNavigableMap |
descendingMap() |
double |
firstDoubleValue()
A method to get the first Value of a Map.
|
Float2DoubleMap.Entry |
firstEntry() |
float |
firstFloatKey()
A method to get the first Key of a Map.
|
ObjectSet<Float2DoubleMap.Entry> |
float2DoubleEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
Float2DoubleMap.Entry |
floorEntry(float key)
A Type Specific floorEntry method to reduce boxing/unboxing.
|
float |
floorKey(float e)
A Type Specific floorKey method to reduce boxing/unboxing.
|
double |
getAndMoveToFirst(float key)
A Specific get method that allows to move teh given key/value int the first index.
|
double |
getAndMoveToLast(float key)
A Specific get method that allows to move teh given key/value int the last index.
|
float |
getDefaultMaxValue()
A Helper method to get the max value for SubMaps.
|
float |
getDefaultMinValue()
A Helper method to get the min value for SubMaps.
|
double |
getDouble(float key)
A Type Specific get method to reduce boxing/unboxing
|
double |
getOrDefault(float key,
double defaultValue)
A Type Specific getOrDefault method to reduce boxing/unboxing
|
Float2DoubleNavigableMap |
headMap(float toKey,
boolean inclusive)
A Type Specific HeadMap method to reduce boxing/unboxing
|
Float2DoubleMap.Entry |
higherEntry(float key)
A Type Specific higherEntry method to reduce boxing/unboxing.
|
float |
higherKey(float e)
A Type Specific higherKey method to reduce boxing/unboxing.
|
FloatSortedSet |
keySet() |
double |
lastDoubleValue()
A method to get the last Value of a Map.
|
Float2DoubleMap.Entry |
lastEntry() |
float |
lastFloatKey()
A method to get the last Key of a Map.
|
Float2DoubleMap.Entry |
lowerEntry(float key)
A Type Specific lowerEntry method to reduce boxing/unboxing.
|
float |
lowerKey(float e)
A Type Specific lowerKey method to reduce boxing/unboxing.
|
void |
mergeAllDouble(Float2DoubleMap m,
DoubleDoubleUnaryOperator mappingFunction)
A Bulk method for merging Maps.
|
double |
mergeDouble(float key,
double value,
DoubleDoubleUnaryOperator mappingFunction)
A Type Specific merge method to reduce boxing/unboxing
|
boolean |
moveToFirst(float key)
A specific move method to move a given key/value to the first index.
|
boolean |
moveToLast(float key)
A specific move method to move a given key/value to the last index.
|
FloatNavigableSet |
navigableKeySet() |
Float2DoubleMap.Entry |
pollFirstEntry() |
float |
pollFirstFloatKey()
A method to get and remove the first Key of a Map.
|
Float2DoubleMap.Entry |
pollLastEntry() |
float |
pollLastFloatKey()
A method to get and remove the last Key of a Map.
|
double |
put(float key,
double value)
Type Specific method to reduce boxing/unboxing of values
|
double |
putAndMoveToFirst(float key,
double value)
A customized put method that allows you to insert into the first index.
|
double |
putAndMoveToLast(float key,
double value)
A customized put method that allows you to insert into the last index.
|
double |
putIfAbsent(float key,
double value)
Type Specific method to reduce boxing/unboxing of values
|
double |
remFloat(float key)
Type Specific remove function to reduce boxing/unboxing
|
double |
remFloatOrDefault(float key,
double defaultValue)
Type-Specific Remove function with a default return value if wanted.
|
boolean |
remove(float key,
double value)
Type Specific remove function to reduce boxing/unboxing
|
double |
replace(float key,
double value)
A Type Specific replace method to reduce boxing/unboxing replace an existing value
|
boolean |
replace(float key,
double oldValue,
double newValue)
A Type Specific replace method to replace an existing value
|
void |
setDefaultMaxValue(float value)
A Helper method to set the max value for SubMaps.
|
void |
setDefaultMinValue(float value)
A Helper method to set the min value for SubMaps.
|
int |
size() |
Float2DoubleNavigableMap |
subMap(float fromKey,
boolean fromInclusive,
float toKey,
boolean toInclusive)
A Type Specific SubMap method to reduce boxing/unboxing
|
Float2DoubleNavigableMap |
tailMap(float 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 Float2DoubleRBTreeMap()
public Float2DoubleRBTreeMap(FloatComparator comp)
comp - the function that decides how the tree is sorted, can be nullpublic Float2DoubleRBTreeMap(java.lang.Float[] 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 Float2DoubleRBTreeMap(java.lang.Float[] keys,
java.lang.Double[] values,
FloatComparator 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 Float2DoubleRBTreeMap(float[] 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 Float2DoubleRBTreeMap(float[] keys,
double[] values,
FloatComparator 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 Float2DoubleRBTreeMap(java.util.Map<? extends java.lang.Float,? extends java.lang.Double> map)
map - the values that should be present in the mappublic Float2DoubleRBTreeMap(java.util.Map<? extends java.lang.Float,? extends java.lang.Double> map,
FloatComparator comp)
map - the values that should be present in the mapcomp - the function that decides how the tree is sorted, can be nullpublic Float2DoubleRBTreeMap(Float2DoubleMap map)
map - the values that should be present in the mappublic Float2DoubleRBTreeMap(Float2DoubleMap map, FloatComparator 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(float value)
Float2DoubleNavigableMapsetDefaultMaxValue in interface Float2DoubleNavigableMapvalue - the new max valuepublic float getDefaultMaxValue()
Float2DoubleNavigableMapgetDefaultMaxValue in interface Float2DoubleNavigableMappublic void setDefaultMinValue(float value)
Float2DoubleNavigableMapsetDefaultMinValue in interface Float2DoubleNavigableMapvalue - the new min valuepublic float getDefaultMinValue()
Float2DoubleNavigableMapgetDefaultMinValue in interface Float2DoubleNavigableMappublic double put(float key,
double value)
Float2DoubleMapput in interface Float2DoubleMapkey - the key that should be inserted,value - the value that should be insertedMap.put(Object, Object)public double putIfAbsent(float key,
double value)
Float2DoubleMapputIfAbsent in interface Float2DoubleMapkey - the key that should be inserted,value - the value that should be insertedMap.putIfAbsent(Object, Object)public double addTo(float key,
double value)
Float2DoubleMapaddTo in interface Float2DoubleMapkey - the key that should be inserted,value - the value that should be inserted / addedpublic double putAndMoveToFirst(float key,
double value)
Float2DoubleSortedMapputAndMoveToFirst in interface Float2DoubleSortedMapkey - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public double putAndMoveToLast(float key,
double value)
Float2DoubleSortedMapputAndMoveToLast in interface Float2DoubleSortedMapkey - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public boolean moveToFirst(float key)
Float2DoubleSortedMapmoveToFirst in interface Float2DoubleSortedMapkey - that should be moved to the first indexpublic boolean moveToLast(float key)
Float2DoubleSortedMapmoveToLast in interface Float2DoubleSortedMapkey - that should be moved to the first lastpublic double getAndMoveToFirst(float key)
Float2DoubleSortedMapgetAndMoveToFirst in interface Float2DoubleSortedMapkey - that is searched forpublic double getAndMoveToLast(float key)
Float2DoubleSortedMapgetAndMoveToLast in interface Float2DoubleSortedMapkey - that is searched forpublic FloatComparator comparator()
comparator in interface java.util.SortedMap<java.lang.Float,java.lang.Double>comparator in interface Float2DoubleSortedMappublic boolean containsKey(float key)
Float2DoubleMapcontainsKey in interface Float2DoubleMapcontainsKey in class AbstractFloat2DoubleMapkey - element that is searched forpublic double getDouble(float key)
Float2DoubleMapgetDouble in interface Float2DoubleFunctiongetDouble in interface Float2DoubleMapkey - the key that is searched forpublic double getOrDefault(float key,
double defaultValue)
Float2DoubleMapgetOrDefault in interface Float2DoubleMapgetOrDefault in class AbstractFloat2DoubleMapkey - the key that is searched fordefaultValue - the value that should be returned if the key is not presentpublic float firstFloatKey()
Float2DoubleSortedMapfirstFloatKey in interface Float2DoubleSortedMappublic float pollFirstFloatKey()
Float2DoubleSortedMappollFirstFloatKey in interface Float2DoubleSortedMappublic float lastFloatKey()
Float2DoubleSortedMaplastFloatKey in interface Float2DoubleSortedMappublic float pollLastFloatKey()
Float2DoubleSortedMappollLastFloatKey in interface Float2DoubleSortedMappublic Float2DoubleMap.Entry firstEntry()
firstEntry in interface java.util.NavigableMap<java.lang.Float,java.lang.Double>firstEntry in interface Float2DoubleNavigableMappublic Float2DoubleMap.Entry lastEntry()
lastEntry in interface java.util.NavigableMap<java.lang.Float,java.lang.Double>lastEntry in interface Float2DoubleNavigableMappublic Float2DoubleMap.Entry pollFirstEntry()
pollFirstEntry in interface java.util.NavigableMap<java.lang.Float,java.lang.Double>pollFirstEntry in interface Float2DoubleNavigableMappublic Float2DoubleMap.Entry pollLastEntry()
pollLastEntry in interface java.util.NavigableMap<java.lang.Float,java.lang.Double>pollLastEntry in interface Float2DoubleNavigableMappublic double firstDoubleValue()
Float2DoubleSortedMapfirstDoubleValue in interface Float2DoubleSortedMappublic double lastDoubleValue()
Float2DoubleSortedMaplastDoubleValue in interface Float2DoubleSortedMappublic double remFloat(float key)
Float2DoubleMapremFloat in interface Float2DoubleMapkey - the element that should be removedpublic double remFloatOrDefault(float key,
double defaultValue)
Float2DoubleMapremFloatOrDefault in interface Float2DoubleMapkey - the element that should be removeddefaultValue - the value that should be returned if the entry doesn't existMap.remove(Object, Object)public boolean remove(float key,
double value)
Float2DoubleMapremove in interface Float2DoubleMapkey - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)public boolean replace(float key,
double oldValue,
double newValue)
Float2DoubleMapreplace in interface Float2DoubleMapreplace in class AbstractFloat2DoubleMapkey - the element that should be searched foroldValue - the expected value to be replacednewValue - the value to replace the oldValue with.public double replace(float key,
double value)
Float2DoubleMapreplace in interface Float2DoubleMapreplace in class AbstractFloat2DoubleMapkey - the element that should be searched forvalue - the value to replace with.public double computeDouble(float key,
FloatDoubleUnaryOperator mappingFunction)
Float2DoubleMapcomputeDouble in interface Float2DoubleMapcomputeDouble in class AbstractFloat2DoubleMapkey - the key that should be computedmappingFunction - the operator that should generate the valuepublic double computeDoubleIfAbsent(float key,
Float2DoubleFunction mappingFunction)
Float2DoubleMapcomputeDoubleIfAbsent in interface Float2DoubleMapcomputeDoubleIfAbsent in class AbstractFloat2DoubleMapkey - the key that should be computedmappingFunction - the operator that should generate the value if not presentpublic double computeDoubleIfPresent(float key,
FloatDoubleUnaryOperator mappingFunction)
Float2DoubleMapcomputeDoubleIfPresent in interface Float2DoubleMapcomputeDoubleIfPresent in class AbstractFloat2DoubleMapkey - the key that should be computedmappingFunction - the operator that should generate the value if presentpublic double mergeDouble(float key,
double value,
DoubleDoubleUnaryOperator mappingFunction)
Float2DoubleMapmergeDouble in interface Float2DoubleMapmergeDouble in class AbstractFloat2DoubleMapkey - 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(Float2DoubleMap m, DoubleDoubleUnaryOperator mappingFunction)
Float2DoubleMapmergeAllDouble in interface Float2DoubleMapmergeAllDouble in class AbstractFloat2DoubleMapm - 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.Float,java.lang.Double>size in class java.util.AbstractMap<java.lang.Float,java.lang.Double>public void clear()
clear in interface java.util.Map<java.lang.Float,java.lang.Double>clear in class java.util.AbstractMap<java.lang.Float,java.lang.Double>public FloatSortedSet keySet()
keySet in interface java.util.Map<java.lang.Float,java.lang.Double>keySet in interface java.util.SortedMap<java.lang.Float,java.lang.Double>keySet in interface Float2DoubleMapkeySet in interface Float2DoubleSortedMapkeySet in class AbstractFloat2DoubleMappublic ObjectSet<Float2DoubleMap.Entry> float2DoubleEntrySet()
Float2DoubleMapfloat2DoubleEntrySet in interface Float2DoubleMappublic DoubleCollection values()
values in interface java.util.Map<java.lang.Float,java.lang.Double>values in interface java.util.SortedMap<java.lang.Float,java.lang.Double>values in interface Float2DoubleMapvalues in interface Float2DoubleSortedMapvalues in class AbstractFloat2DoubleMappublic FloatNavigableSet navigableKeySet()
navigableKeySet in interface java.util.NavigableMap<java.lang.Float,java.lang.Double>navigableKeySet in interface Float2DoubleNavigableMappublic Float2DoubleNavigableMap descendingMap()
descendingMap in interface java.util.NavigableMap<java.lang.Float,java.lang.Double>descendingMap in interface Float2DoubleNavigableMappublic FloatNavigableSet descendingKeySet()
descendingKeySet in interface java.util.NavigableMap<java.lang.Float,java.lang.Double>descendingKeySet in interface Float2DoubleNavigableMappublic Float2DoubleNavigableMap subMap(float fromKey, boolean fromInclusive, float toKey, boolean toInclusive)
Float2DoubleNavigableMapsubMap in interface Float2DoubleNavigableMapfromKey - where the submap should startfromInclusive - if the fromKey is inclusive or nottoKey - where the subMap should endtoInclusive - if the toKey is inclusive or notpublic Float2DoubleNavigableMap headMap(float toKey, boolean inclusive)
Float2DoubleNavigableMapheadMap in interface Float2DoubleNavigableMaptoKey - where the HeadMap should endinclusive - if the toKey is inclusive or notpublic Float2DoubleNavigableMap tailMap(float fromKey, boolean inclusive)
Float2DoubleNavigableMaptailMap in interface Float2DoubleNavigableMapfromKey - where the TailMap should startinclusive - if the fromKey is inclusive or notpublic float lowerKey(float e)
Float2DoubleNavigableMaplowerKey in interface Float2DoubleNavigableMape - that should be compared with.public float floorKey(float e)
Float2DoubleNavigableMapfloorKey in interface Float2DoubleNavigableMape - that should be compared with.public float higherKey(float e)
Float2DoubleNavigableMaphigherKey in interface Float2DoubleNavigableMape - that should be compared with.public float ceilingKey(float e)
Float2DoubleNavigableMapceilingKey in interface Float2DoubleNavigableMape - that should be compared with.public Float2DoubleMap.Entry lowerEntry(float key)
Float2DoubleNavigableMaplowerEntry in interface Float2DoubleNavigableMapkey - that should be compared with.public Float2DoubleMap.Entry higherEntry(float key)
Float2DoubleNavigableMaphigherEntry in interface Float2DoubleNavigableMapkey - that should be compared with.public Float2DoubleMap.Entry floorEntry(float key)
Float2DoubleNavigableMapfloorEntry in interface Float2DoubleNavigableMapkey - that should be compared with.public Float2DoubleMap.Entry ceilingEntry(float key)
Float2DoubleNavigableMapceilingEntry in interface Float2DoubleNavigableMapkey - that should be compared with.