V - the type of elements maintained by this Collectionpublic class Float2ObjectAVLTreeMap<V> extends AbstractFloat2ObjectMap<V> implements Float2ObjectNavigableMap<V>
AbstractFloat2ObjectMap.BasicEntry<V>java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Float2ObjectSortedMap.FastSortedSet<V>Float2ObjectMap.FastEntrySet<V>| Constructor and Description |
|---|
Float2ObjectAVLTreeMap()
Default Constructor
|
Float2ObjectAVLTreeMap(float[] keys,
V[] values)
Helper constructor that allow to create a map from unboxed values
|
Float2ObjectAVLTreeMap(java.lang.Float[] keys,
V[] values)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Float2ObjectAVLTreeMap(float[] keys,
V[] values,
FloatComparator comp)
Helper constructor that has a custom sorter and allow to create a map from unboxed values
|
Float2ObjectAVLTreeMap(java.lang.Float[] keys,
V[] values,
FloatComparator comp)
Helper constructor that has a custom sorter and allow to create a map from boxed values (it will unbox them)
|
Float2ObjectAVLTreeMap(Float2ObjectMap<V> map)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Float2ObjectAVLTreeMap(Float2ObjectMap<V> 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.
|
Float2ObjectAVLTreeMap(FloatComparator comp)
Constructor that allows to define the sorter
|
Float2ObjectAVLTreeMap(java.util.Map<? extends java.lang.Float,? extends V> map)
A Helper constructor that allows to create a Map with exactly the same values as the provided map.
|
Float2ObjectAVLTreeMap(java.util.Map<? extends java.lang.Float,? extends V> 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 |
|---|---|
Float2ObjectMap.Entry<V> |
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() |
V |
compute(float key,
FloatObjectUnaryOperator<V> mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
V |
computeIfAbsent(float key,
Float2ObjectFunction<V> mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
V |
computeIfPresent(float key,
FloatObjectUnaryOperator<V> 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() |
Float2ObjectNavigableMap<V> |
descendingMap() |
Float2ObjectMap.Entry<V> |
firstEntry() |
float |
firstFloatKey()
A method to get the first Key of a Map.
|
V |
firstValue()
A method to get the first Value of a Map.
|
ObjectSet<Float2ObjectMap.Entry<V>> |
float2ObjectEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
Float2ObjectMap.Entry<V> |
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.
|
V |
getAndMoveToFirst(float key)
A Specific get method that allows to move teh given key/value int the first index.
|
V |
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.
|
V |
getObject(float key)
A Type Specific get method to reduce boxing/unboxing
|
V |
getOrDefault(float key,
V defaultValue)
A Type Specific getOrDefault method to reduce boxing/unboxing
|
Float2ObjectNavigableMap<V> |
headMap(float toKey,
boolean inclusive)
A Type Specific HeadMap method to reduce boxing/unboxing
|
Float2ObjectMap.Entry<V> |
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() |
Float2ObjectMap.Entry<V> |
lastEntry() |
float |
lastFloatKey()
A method to get the last Key of a Map.
|
V |
lastValue()
A method to get the last Value of a Map.
|
Float2ObjectMap.Entry<V> |
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.
|
V |
merge(float key,
V value,
ObjectObjectUnaryOperator<V,V> mappingFunction)
A Type Specific merge method to reduce boxing/unboxing
|
void |
mergeAll(Float2ObjectMap<V> m,
ObjectObjectUnaryOperator<V,V> mappingFunction)
A Bulk method for merging Maps.
|
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() |
Float2ObjectMap.Entry<V> |
pollFirstEntry() |
float |
pollFirstFloatKey()
A method to get and remove the first Key of a Map.
|
Float2ObjectMap.Entry<V> |
pollLastEntry() |
float |
pollLastFloatKey()
A method to get and remove the last Key of a Map.
|
V |
put(float key,
V value)
Type Specific method to reduce boxing/unboxing of values
|
V |
putAndMoveToFirst(float key,
V value)
A customized put method that allows you to insert into the first index.
|
V |
putAndMoveToLast(float key,
V value)
A customized put method that allows you to insert into the last index.
|
V |
putIfAbsent(float key,
V value)
Type Specific method to reduce boxing/unboxing of values
|
V |
remFloat(float key)
Type Specific remove function to reduce boxing/unboxing
|
V |
remFloatOrDefault(float key,
V defaultValue)
Type-Specific Remove function with a default return value if wanted.
|
boolean |
remove(float key,
V value)
Type Specific remove function to reduce boxing/unboxing
|
V |
replace(float key,
V value)
A Type Specific replace method to reduce boxing/unboxing replace an existing value
|
boolean |
replace(float key,
V oldValue,
V 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() |
Float2ObjectNavigableMap<V> |
subMap(float fromKey,
boolean fromInclusive,
float toKey,
boolean toInclusive)
A Type Specific SubMap method to reduce boxing/unboxing
|
Float2ObjectNavigableMap<V> |
tailMap(float fromKey,
boolean inclusive)
A Type Specific TailMap method to reduce boxing/unboxing
|
ObjectCollection<V> |
values() |
containsValue, entrySet, equals, forEach, get, getDefaultReturnValue, getOrDefault, hashCode, putAll, putAll, putAll, putAllIfAbsent, replaceObjects, replaceObjects, setDefaultReturnValueceilingEntry, ceilingKey, floorEntry, floorKey, headMap, headMap, headMap, higherEntry, higherKey, lowerEntry, lowerKey, subMap, subMap, subMap, tailMap, tailMap, tailMapfirstKey, lastKeycompute, computeIfAbsent, computeIfPresent, containsKey, entrySet, forEach, forEach, get, getDefaultReturnValue, getOrDefault, merge, put, putAll, putAll, putAll, putAllIfAbsent, putIfAbsent, remove, remove, replace, replace, replaceAll, replaceObjects, replaceObjects, setDefaultReturnValuepublic Float2ObjectAVLTreeMap()
public Float2ObjectAVLTreeMap(FloatComparator comp)
comp - the function that decides how the tree is sorted, can be nullpublic Float2ObjectAVLTreeMap(java.lang.Float[] keys,
V[] 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 Float2ObjectAVLTreeMap(java.lang.Float[] keys,
V[] 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 Float2ObjectAVLTreeMap(float[] keys,
V[] 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 Float2ObjectAVLTreeMap(float[] keys,
V[] 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 Float2ObjectAVLTreeMap(java.util.Map<? extends java.lang.Float,? extends V> map)
map - the values that should be present in the mappublic Float2ObjectAVLTreeMap(java.util.Map<? extends java.lang.Float,? extends V> 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 Float2ObjectAVLTreeMap(Float2ObjectMap<V> map)
map - the values that should be present in the mappublic Float2ObjectAVLTreeMap(Float2ObjectMap<V> 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)
Float2ObjectNavigableMapsetDefaultMaxValue in interface Float2ObjectNavigableMap<V>value - the new max valuepublic float getDefaultMaxValue()
Float2ObjectNavigableMapgetDefaultMaxValue in interface Float2ObjectNavigableMap<V>public void setDefaultMinValue(float value)
Float2ObjectNavigableMapsetDefaultMinValue in interface Float2ObjectNavigableMap<V>value - the new min valuepublic float getDefaultMinValue()
Float2ObjectNavigableMapgetDefaultMinValue in interface Float2ObjectNavigableMap<V>public V put(float key, V value)
Float2ObjectMapput in interface Float2ObjectMap<V>key - the key that should be inserted,value - the value that should be insertedMap.put(Object, Object)public V putIfAbsent(float key, V value)
Float2ObjectMapputIfAbsent in interface Float2ObjectMap<V>key - the key that should be inserted,value - the value that should be insertedMap.putIfAbsent(Object, Object)public V putAndMoveToFirst(float key, V value)
Float2ObjectSortedMapputAndMoveToFirst in interface Float2ObjectSortedMap<V>key - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public V putAndMoveToLast(float key, V value)
Float2ObjectSortedMapputAndMoveToLast in interface Float2ObjectSortedMap<V>key - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public boolean moveToFirst(float key)
Float2ObjectSortedMapmoveToFirst in interface Float2ObjectSortedMap<V>key - that should be moved to the first indexpublic boolean moveToLast(float key)
Float2ObjectSortedMapmoveToLast in interface Float2ObjectSortedMap<V>key - that should be moved to the first lastpublic V getAndMoveToFirst(float key)
Float2ObjectSortedMapgetAndMoveToFirst in interface Float2ObjectSortedMap<V>key - that is searched forpublic V getAndMoveToLast(float key)
Float2ObjectSortedMapgetAndMoveToLast in interface Float2ObjectSortedMap<V>key - that is searched forpublic FloatComparator comparator()
comparator in interface java.util.SortedMap<java.lang.Float,V>comparator in interface Float2ObjectSortedMap<V>public boolean containsKey(float key)
Float2ObjectMapcontainsKey in interface Float2ObjectMap<V>containsKey in class AbstractFloat2ObjectMap<V>key - element that is searched forpublic V getObject(float key)
Float2ObjectMapgetObject in interface Float2ObjectFunction<V>getObject in interface Float2ObjectMap<V>key - the key that is searched forpublic V getOrDefault(float key, V defaultValue)
Float2ObjectMapgetOrDefault in interface Float2ObjectMap<V>getOrDefault in class AbstractFloat2ObjectMap<V>key - the key that is searched fordefaultValue - the value that should be returned if the key is not presentpublic float firstFloatKey()
Float2ObjectSortedMapfirstFloatKey in interface Float2ObjectSortedMap<V>public float pollFirstFloatKey()
Float2ObjectSortedMappollFirstFloatKey in interface Float2ObjectSortedMap<V>public float lastFloatKey()
Float2ObjectSortedMaplastFloatKey in interface Float2ObjectSortedMap<V>public float pollLastFloatKey()
Float2ObjectSortedMappollLastFloatKey in interface Float2ObjectSortedMap<V>public Float2ObjectMap.Entry<V> firstEntry()
firstEntry in interface java.util.NavigableMap<java.lang.Float,V>firstEntry in interface Float2ObjectNavigableMap<V>public Float2ObjectMap.Entry<V> lastEntry()
lastEntry in interface java.util.NavigableMap<java.lang.Float,V>lastEntry in interface Float2ObjectNavigableMap<V>public Float2ObjectMap.Entry<V> pollFirstEntry()
pollFirstEntry in interface java.util.NavigableMap<java.lang.Float,V>pollFirstEntry in interface Float2ObjectNavigableMap<V>public Float2ObjectMap.Entry<V> pollLastEntry()
pollLastEntry in interface java.util.NavigableMap<java.lang.Float,V>pollLastEntry in interface Float2ObjectNavigableMap<V>public V firstValue()
Float2ObjectSortedMapfirstValue in interface Float2ObjectSortedMap<V>public V lastValue()
Float2ObjectSortedMaplastValue in interface Float2ObjectSortedMap<V>public V remFloat(float key)
Float2ObjectMapremFloat in interface Float2ObjectMap<V>key - the element that should be removedpublic V remFloatOrDefault(float key, V defaultValue)
Float2ObjectMapremFloatOrDefault in interface Float2ObjectMap<V>key - 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,
V value)
Float2ObjectMapremove in interface Float2ObjectMap<V>key - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)public boolean replace(float key,
V oldValue,
V newValue)
Float2ObjectMapreplace in interface Float2ObjectMap<V>replace in class AbstractFloat2ObjectMap<V>key - the element that should be searched foroldValue - the expected value to be replacednewValue - the value to replace the oldValue with.public V replace(float key, V value)
Float2ObjectMapreplace in interface Float2ObjectMap<V>replace in class AbstractFloat2ObjectMap<V>key - the element that should be searched forvalue - the value to replace with.public V compute(float key, FloatObjectUnaryOperator<V> mappingFunction)
Float2ObjectMapcompute in interface Float2ObjectMap<V>compute in class AbstractFloat2ObjectMap<V>key - the key that should be computedmappingFunction - the operator that should generate the valuepublic V computeIfAbsent(float key, Float2ObjectFunction<V> mappingFunction)
Float2ObjectMapcomputeIfAbsent in interface Float2ObjectMap<V>computeIfAbsent in class AbstractFloat2ObjectMap<V>key - the key that should be computedmappingFunction - the operator that should generate the value if not presentpublic V computeIfPresent(float key, FloatObjectUnaryOperator<V> mappingFunction)
Float2ObjectMapcomputeIfPresent in interface Float2ObjectMap<V>computeIfPresent in class AbstractFloat2ObjectMap<V>key - the key that should be computedmappingFunction - the operator that should generate the value if presentpublic V merge(float key, V value, ObjectObjectUnaryOperator<V,V> mappingFunction)
Float2ObjectMapmerge in interface Float2ObjectMap<V>merge in class AbstractFloat2ObjectMap<V>key - the key that should be be searched forvalue - the value that should be merged withmappingFunction - the operator that should generate the new Valuepublic void mergeAll(Float2ObjectMap<V> m, ObjectObjectUnaryOperator<V,V> mappingFunction)
Float2ObjectMapmergeAll in interface Float2ObjectMap<V>mergeAll in class AbstractFloat2ObjectMap<V>m - the entries that should be bulk addedmappingFunction - the operator that should generate the new Valuepublic int size()
public void clear()
public FloatSortedSet keySet()
keySet in interface java.util.Map<java.lang.Float,V>keySet in interface java.util.SortedMap<java.lang.Float,V>keySet in interface Float2ObjectMap<V>keySet in interface Float2ObjectSortedMap<V>keySet in class AbstractFloat2ObjectMap<V>public ObjectSet<Float2ObjectMap.Entry<V>> float2ObjectEntrySet()
Float2ObjectMapfloat2ObjectEntrySet in interface Float2ObjectMap<V>public ObjectCollection<V> values()
values in interface java.util.Map<java.lang.Float,V>values in interface java.util.SortedMap<java.lang.Float,V>values in interface Float2ObjectMap<V>values in interface Float2ObjectSortedMap<V>values in class AbstractFloat2ObjectMap<V>public FloatNavigableSet navigableKeySet()
navigableKeySet in interface java.util.NavigableMap<java.lang.Float,V>navigableKeySet in interface Float2ObjectNavigableMap<V>public Float2ObjectNavigableMap<V> descendingMap()
descendingMap in interface java.util.NavigableMap<java.lang.Float,V>descendingMap in interface Float2ObjectNavigableMap<V>public FloatNavigableSet descendingKeySet()
descendingKeySet in interface java.util.NavigableMap<java.lang.Float,V>descendingKeySet in interface Float2ObjectNavigableMap<V>public Float2ObjectNavigableMap<V> subMap(float fromKey, boolean fromInclusive, float toKey, boolean toInclusive)
Float2ObjectNavigableMapsubMap in interface Float2ObjectNavigableMap<V>fromKey - where the submap should startfromInclusive - if the fromKey is inclusive or nottoKey - where the subMap should endtoInclusive - if the toKey is inclusive or notpublic Float2ObjectNavigableMap<V> headMap(float toKey, boolean inclusive)
Float2ObjectNavigableMapheadMap in interface Float2ObjectNavigableMap<V>toKey - where the HeadMap should endinclusive - if the toKey is inclusive or notpublic Float2ObjectNavigableMap<V> tailMap(float fromKey, boolean inclusive)
Float2ObjectNavigableMaptailMap in interface Float2ObjectNavigableMap<V>fromKey - where the TailMap should startinclusive - if the fromKey is inclusive or notpublic float lowerKey(float e)
Float2ObjectNavigableMaplowerKey in interface Float2ObjectNavigableMap<V>e - that should be compared with.public float floorKey(float e)
Float2ObjectNavigableMapfloorKey in interface Float2ObjectNavigableMap<V>e - that should be compared with.public float higherKey(float e)
Float2ObjectNavigableMaphigherKey in interface Float2ObjectNavigableMap<V>e - that should be compared with.public float ceilingKey(float e)
Float2ObjectNavigableMapceilingKey in interface Float2ObjectNavigableMap<V>e - that should be compared with.public Float2ObjectMap.Entry<V> lowerEntry(float key)
Float2ObjectNavigableMaplowerEntry in interface Float2ObjectNavigableMap<V>key - that should be compared with.public Float2ObjectMap.Entry<V> higherEntry(float key)
Float2ObjectNavigableMaphigherEntry in interface Float2ObjectNavigableMap<V>key - that should be compared with.public Float2ObjectMap.Entry<V> floorEntry(float key)
Float2ObjectNavigableMapfloorEntry in interface Float2ObjectNavigableMap<V>key - that should be compared with.public Float2ObjectMap.Entry<V> ceilingEntry(float key)
Float2ObjectNavigableMapceilingEntry in interface Float2ObjectNavigableMap<V>key - that should be compared with.