public class Float2FloatAVLTreeMap extends AbstractFloat2FloatMap implements Float2FloatNavigableMap
AbstractFloat2FloatMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Float2FloatSortedMap.FastSortedSetFloat2FloatMap.FastEntrySet| Constructor and Description |
|---|
Float2FloatAVLTreeMap()
Default Constructor
|
Float2FloatAVLTreeMap(float[] keys,
float[] values)
Helper constructor that allow to create a map from unboxed values
|
Float2FloatAVLTreeMap(java.lang.Float[] keys,
java.lang.Float[] values)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Float2FloatAVLTreeMap(float[] keys,
float[] values,
FloatComparator comp)
Helper constructor that has a custom sorter and allow to create a map from unboxed values
|
Float2FloatAVLTreeMap(java.lang.Float[] keys,
java.lang.Float[] values,
FloatComparator comp)
Helper constructor that has a custom sorter and allow to create a map from boxed values (it will unbox them)
|
Float2FloatAVLTreeMap(Float2FloatMap map)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Float2FloatAVLTreeMap(Float2FloatMap 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.
|
Float2FloatAVLTreeMap(FloatComparator comp)
Constructor that allows to define the sorter
|
Float2FloatAVLTreeMap(java.util.Map<? extends java.lang.Float,? extends java.lang.Float> map)
A Helper constructor that allows to create a Map with exactly the same values as the provided map.
|
Float2FloatAVLTreeMap(java.util.Map<? extends java.lang.Float,? extends java.lang.Float> 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 |
|---|---|
float |
addTo(float key,
float value)
A Helper method to add a primitives together.
|
Float2FloatMap.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() |
float |
computeFloat(float key,
FloatFloatUnaryOperator mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
float |
computeFloatIfAbsent(float key,
Float2FloatFunction mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
float |
computeFloatIfPresent(float key,
FloatFloatUnaryOperator 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() |
Float2FloatNavigableMap |
descendingMap() |
Float2FloatMap.Entry |
firstEntry() |
float |
firstFloatKey()
A method to get the first Key of a Map.
|
float |
firstFloatValue()
A method to get the first Value of a Map.
|
ObjectSet<Float2FloatMap.Entry> |
float2FloatEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
Float2FloatMap.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.
|
float |
getAndMoveToFirst(float key)
A Specific get method that allows to move teh given key/value int the first index.
|
float |
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.
|
float |
getFloat(float key)
A Type Specific get method to reduce boxing/unboxing
|
float |
getOrDefault(float key,
float defaultValue)
A Type Specific getOrDefault method to reduce boxing/unboxing
|
Float2FloatNavigableMap |
headMap(float toKey,
boolean inclusive)
A Type Specific HeadMap method to reduce boxing/unboxing
|
Float2FloatMap.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() |
Float2FloatMap.Entry |
lastEntry() |
float |
lastFloatKey()
A method to get the last Key of a Map.
|
float |
lastFloatValue()
A method to get the last Value of a Map.
|
Float2FloatMap.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 |
mergeAllFloat(Float2FloatMap m,
FloatFloatUnaryOperator mappingFunction)
A Bulk method for merging Maps.
|
float |
mergeFloat(float key,
float value,
FloatFloatUnaryOperator 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() |
Float2FloatMap.Entry |
pollFirstEntry() |
float |
pollFirstFloatKey()
A method to get and remove the first Key of a Map.
|
Float2FloatMap.Entry |
pollLastEntry() |
float |
pollLastFloatKey()
A method to get and remove the last Key of a Map.
|
float |
put(float key,
float value)
Type Specific method to reduce boxing/unboxing of values
|
float |
putAndMoveToFirst(float key,
float value)
A customized put method that allows you to insert into the first index.
|
float |
putAndMoveToLast(float key,
float value)
A customized put method that allows you to insert into the last index.
|
float |
putIfAbsent(float key,
float value)
Type Specific method to reduce boxing/unboxing of values
|
float |
remFloat(float key)
Type Specific remove function to reduce boxing/unboxing
|
float |
remFloatOrDefault(float key,
float defaultValue)
Type-Specific Remove function with a default return value if wanted.
|
boolean |
remove(float key,
float value)
Type Specific remove function to reduce boxing/unboxing
|
float |
replace(float key,
float value)
A Type Specific replace method to reduce boxing/unboxing replace an existing value
|
boolean |
replace(float key,
float oldValue,
float 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() |
Float2FloatNavigableMap |
subMap(float fromKey,
boolean fromInclusive,
float toKey,
boolean toInclusive)
A Type Specific SubMap method to reduce boxing/unboxing
|
Float2FloatNavigableMap |
tailMap(float fromKey,
boolean inclusive)
A Type Specific TailMap method to reduce boxing/unboxing
|
FloatCollection |
values() |
addToAll, containsValue, entrySet, equals, forEach, get, getDefaultReturnValue, getOrDefault, hashCode, putAll, putAll, putAll, putAllIfAbsent, replaceFloats, replaceFloats, 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, replaceFloats, replaceFloats, setDefaultReturnValuepublic Float2FloatAVLTreeMap()
public Float2FloatAVLTreeMap(FloatComparator comp)
comp - the function that decides how the tree is sorted, can be nullpublic Float2FloatAVLTreeMap(java.lang.Float[] keys,
java.lang.Float[] 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 Float2FloatAVLTreeMap(java.lang.Float[] keys,
java.lang.Float[] 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 Float2FloatAVLTreeMap(float[] keys,
float[] 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 Float2FloatAVLTreeMap(float[] keys,
float[] 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 Float2FloatAVLTreeMap(java.util.Map<? extends java.lang.Float,? extends java.lang.Float> map)
map - the values that should be present in the mappublic Float2FloatAVLTreeMap(java.util.Map<? extends java.lang.Float,? extends java.lang.Float> 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 Float2FloatAVLTreeMap(Float2FloatMap map)
map - the values that should be present in the mappublic Float2FloatAVLTreeMap(Float2FloatMap 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)
Float2FloatNavigableMapsetDefaultMaxValue in interface Float2FloatNavigableMapvalue - the new max valuepublic float getDefaultMaxValue()
Float2FloatNavigableMapgetDefaultMaxValue in interface Float2FloatNavigableMappublic void setDefaultMinValue(float value)
Float2FloatNavigableMapsetDefaultMinValue in interface Float2FloatNavigableMapvalue - the new min valuepublic float getDefaultMinValue()
Float2FloatNavigableMapgetDefaultMinValue in interface Float2FloatNavigableMappublic float put(float key,
float value)
Float2FloatMapput in interface Float2FloatMapkey - the key that should be inserted,value - the value that should be insertedMap.put(Object, Object)public float putIfAbsent(float key,
float value)
Float2FloatMapputIfAbsent in interface Float2FloatMapkey - the key that should be inserted,value - the value that should be insertedMap.putIfAbsent(Object, Object)public float addTo(float key,
float value)
Float2FloatMapaddTo in interface Float2FloatMapkey - the key that should be inserted,value - the value that should be inserted / addedpublic float putAndMoveToFirst(float key,
float value)
Float2FloatSortedMapputAndMoveToFirst in interface Float2FloatSortedMapkey - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public float putAndMoveToLast(float key,
float value)
Float2FloatSortedMapputAndMoveToLast in interface Float2FloatSortedMapkey - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public boolean moveToFirst(float key)
Float2FloatSortedMapmoveToFirst in interface Float2FloatSortedMapkey - that should be moved to the first indexpublic boolean moveToLast(float key)
Float2FloatSortedMapmoveToLast in interface Float2FloatSortedMapkey - that should be moved to the first lastpublic float getAndMoveToFirst(float key)
Float2FloatSortedMapgetAndMoveToFirst in interface Float2FloatSortedMapkey - that is searched forpublic float getAndMoveToLast(float key)
Float2FloatSortedMapgetAndMoveToLast in interface Float2FloatSortedMapkey - that is searched forpublic FloatComparator comparator()
comparator in interface java.util.SortedMap<java.lang.Float,java.lang.Float>comparator in interface Float2FloatSortedMappublic boolean containsKey(float key)
Float2FloatMapcontainsKey in interface Float2FloatMapcontainsKey in class AbstractFloat2FloatMapkey - element that is searched forpublic float getFloat(float key)
Float2FloatMapgetFloat in interface Float2FloatFunctiongetFloat in interface Float2FloatMapkey - the key that is searched forpublic float getOrDefault(float key,
float defaultValue)
Float2FloatMapgetOrDefault in interface Float2FloatMapgetOrDefault in class AbstractFloat2FloatMapkey - the key that is searched fordefaultValue - the value that should be returned if the key is not presentpublic float firstFloatKey()
Float2FloatSortedMapfirstFloatKey in interface Float2FloatSortedMappublic float pollFirstFloatKey()
Float2FloatSortedMappollFirstFloatKey in interface Float2FloatSortedMappublic float lastFloatKey()
Float2FloatSortedMaplastFloatKey in interface Float2FloatSortedMappublic float pollLastFloatKey()
Float2FloatSortedMappollLastFloatKey in interface Float2FloatSortedMappublic Float2FloatMap.Entry firstEntry()
firstEntry in interface java.util.NavigableMap<java.lang.Float,java.lang.Float>firstEntry in interface Float2FloatNavigableMappublic Float2FloatMap.Entry lastEntry()
lastEntry in interface java.util.NavigableMap<java.lang.Float,java.lang.Float>lastEntry in interface Float2FloatNavigableMappublic Float2FloatMap.Entry pollFirstEntry()
pollFirstEntry in interface java.util.NavigableMap<java.lang.Float,java.lang.Float>pollFirstEntry in interface Float2FloatNavigableMappublic Float2FloatMap.Entry pollLastEntry()
pollLastEntry in interface java.util.NavigableMap<java.lang.Float,java.lang.Float>pollLastEntry in interface Float2FloatNavigableMappublic float firstFloatValue()
Float2FloatSortedMapfirstFloatValue in interface Float2FloatSortedMappublic float lastFloatValue()
Float2FloatSortedMaplastFloatValue in interface Float2FloatSortedMappublic float remFloat(float key)
Float2FloatMapremFloat in interface Float2FloatMapkey - the element that should be removedpublic float remFloatOrDefault(float key,
float defaultValue)
Float2FloatMapremFloatOrDefault in interface Float2FloatMapkey - 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,
float value)
Float2FloatMapremove in interface Float2FloatMapkey - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)public boolean replace(float key,
float oldValue,
float newValue)
Float2FloatMapreplace in interface Float2FloatMapreplace in class AbstractFloat2FloatMapkey - the element that should be searched foroldValue - the expected value to be replacednewValue - the value to replace the oldValue with.public float replace(float key,
float value)
Float2FloatMapreplace in interface Float2FloatMapreplace in class AbstractFloat2FloatMapkey - the element that should be searched forvalue - the value to replace with.public float computeFloat(float key,
FloatFloatUnaryOperator mappingFunction)
Float2FloatMapcomputeFloat in interface Float2FloatMapcomputeFloat in class AbstractFloat2FloatMapkey - the key that should be computedmappingFunction - the operator that should generate the valuepublic float computeFloatIfAbsent(float key,
Float2FloatFunction mappingFunction)
Float2FloatMapcomputeFloatIfAbsent in interface Float2FloatMapcomputeFloatIfAbsent in class AbstractFloat2FloatMapkey - the key that should be computedmappingFunction - the operator that should generate the value if not presentpublic float computeFloatIfPresent(float key,
FloatFloatUnaryOperator mappingFunction)
Float2FloatMapcomputeFloatIfPresent in interface Float2FloatMapcomputeFloatIfPresent in class AbstractFloat2FloatMapkey - the key that should be computedmappingFunction - the operator that should generate the value if presentpublic float mergeFloat(float key,
float value,
FloatFloatUnaryOperator mappingFunction)
Float2FloatMapmergeFloat in interface Float2FloatMapmergeFloat in class AbstractFloat2FloatMapkey - the key that should be be searched forvalue - the value that should be merged withmappingFunction - the operator that should generate the new Valuepublic void mergeAllFloat(Float2FloatMap m, FloatFloatUnaryOperator mappingFunction)
Float2FloatMapmergeAllFloat in interface Float2FloatMapmergeAllFloat in class AbstractFloat2FloatMapm - 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.Float>size in class java.util.AbstractMap<java.lang.Float,java.lang.Float>public void clear()
clear in interface java.util.Map<java.lang.Float,java.lang.Float>clear in class java.util.AbstractMap<java.lang.Float,java.lang.Float>public FloatSortedSet keySet()
keySet in interface java.util.Map<java.lang.Float,java.lang.Float>keySet in interface java.util.SortedMap<java.lang.Float,java.lang.Float>keySet in interface Float2FloatMapkeySet in interface Float2FloatSortedMapkeySet in class AbstractFloat2FloatMappublic ObjectSet<Float2FloatMap.Entry> float2FloatEntrySet()
Float2FloatMapfloat2FloatEntrySet in interface Float2FloatMappublic FloatCollection values()
values in interface java.util.Map<java.lang.Float,java.lang.Float>values in interface java.util.SortedMap<java.lang.Float,java.lang.Float>values in interface Float2FloatMapvalues in interface Float2FloatSortedMapvalues in class AbstractFloat2FloatMappublic FloatNavigableSet navigableKeySet()
navigableKeySet in interface java.util.NavigableMap<java.lang.Float,java.lang.Float>navigableKeySet in interface Float2FloatNavigableMappublic Float2FloatNavigableMap descendingMap()
descendingMap in interface java.util.NavigableMap<java.lang.Float,java.lang.Float>descendingMap in interface Float2FloatNavigableMappublic FloatNavigableSet descendingKeySet()
descendingKeySet in interface java.util.NavigableMap<java.lang.Float,java.lang.Float>descendingKeySet in interface Float2FloatNavigableMappublic Float2FloatNavigableMap subMap(float fromKey, boolean fromInclusive, float toKey, boolean toInclusive)
Float2FloatNavigableMapsubMap in interface Float2FloatNavigableMapfromKey - where the submap should startfromInclusive - if the fromKey is inclusive or nottoKey - where the subMap should endtoInclusive - if the toKey is inclusive or notpublic Float2FloatNavigableMap headMap(float toKey, boolean inclusive)
Float2FloatNavigableMapheadMap in interface Float2FloatNavigableMaptoKey - where the HeadMap should endinclusive - if the toKey is inclusive or notpublic Float2FloatNavigableMap tailMap(float fromKey, boolean inclusive)
Float2FloatNavigableMaptailMap in interface Float2FloatNavigableMapfromKey - where the TailMap should startinclusive - if the fromKey is inclusive or notpublic float lowerKey(float e)
Float2FloatNavigableMaplowerKey in interface Float2FloatNavigableMape - that should be compared with.public float floorKey(float e)
Float2FloatNavigableMapfloorKey in interface Float2FloatNavigableMape - that should be compared with.public float higherKey(float e)
Float2FloatNavigableMaphigherKey in interface Float2FloatNavigableMape - that should be compared with.public float ceilingKey(float e)
Float2FloatNavigableMapceilingKey in interface Float2FloatNavigableMape - that should be compared with.public Float2FloatMap.Entry lowerEntry(float key)
Float2FloatNavigableMaplowerEntry in interface Float2FloatNavigableMapkey - that should be compared with.public Float2FloatMap.Entry higherEntry(float key)
Float2FloatNavigableMaphigherEntry in interface Float2FloatNavigableMapkey - that should be compared with.public Float2FloatMap.Entry floorEntry(float key)
Float2FloatNavigableMapfloorEntry in interface Float2FloatNavigableMapkey - that should be compared with.public Float2FloatMap.Entry ceilingEntry(float key)
Float2FloatNavigableMapceilingEntry in interface Float2FloatNavigableMapkey - that should be compared with.