public class Float2LongAVLTreeMap extends AbstractFloat2LongMap implements Float2LongNavigableMap
AbstractFloat2LongMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Float2LongSortedMap.FastSortedSetFloat2LongMap.FastEntrySet| Constructor and Description |
|---|
Float2LongAVLTreeMap()
Default Constructor
|
Float2LongAVLTreeMap(float[] keys,
long[] values)
Helper constructor that allow to create a map from unboxed values
|
Float2LongAVLTreeMap(java.lang.Float[] keys,
java.lang.Long[] values)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Float2LongAVLTreeMap(float[] keys,
long[] values,
FloatComparator comp)
Helper constructor that has a custom sorter and allow to create a map from unboxed values
|
Float2LongAVLTreeMap(java.lang.Float[] keys,
java.lang.Long[] values,
FloatComparator comp)
Helper constructor that has a custom sorter and allow to create a map from boxed values (it will unbox them)
|
Float2LongAVLTreeMap(Float2LongMap map)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Float2LongAVLTreeMap(Float2LongMap 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.
|
Float2LongAVLTreeMap(FloatComparator comp)
Constructor that allows to define the sorter
|
Float2LongAVLTreeMap(java.util.Map<? extends java.lang.Float,? extends java.lang.Long> map)
A Helper constructor that allows to create a Map with exactly the same values as the provided map.
|
Float2LongAVLTreeMap(java.util.Map<? extends java.lang.Float,? extends java.lang.Long> 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 |
|---|---|
long |
addTo(float key,
long value)
A Helper method to add a primitives together.
|
Float2LongMap.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() |
long |
computeLong(float key,
FloatLongUnaryOperator mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
long |
computeLongIfAbsent(float key,
Float2LongFunction mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
long |
computeLongIfPresent(float key,
FloatLongUnaryOperator 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() |
Float2LongNavigableMap |
descendingMap() |
Float2LongMap.Entry |
firstEntry() |
float |
firstFloatKey()
A method to get the first Key of a Map.
|
long |
firstLongValue()
A method to get the first Value of a Map.
|
ObjectSet<Float2LongMap.Entry> |
float2LongEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
Float2LongMap.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.
|
long |
getAndMoveToFirst(float key)
A Specific get method that allows to move teh given key/value int the first index.
|
long |
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.
|
long |
getLong(float key)
A Type Specific get method to reduce boxing/unboxing
|
long |
getOrDefault(float key,
long defaultValue)
A Type Specific getOrDefault method to reduce boxing/unboxing
|
Float2LongNavigableMap |
headMap(float toKey,
boolean inclusive)
A Type Specific HeadMap method to reduce boxing/unboxing
|
Float2LongMap.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() |
Float2LongMap.Entry |
lastEntry() |
float |
lastFloatKey()
A method to get the last Key of a Map.
|
long |
lastLongValue()
A method to get the last Value of a Map.
|
Float2LongMap.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 |
mergeAllLong(Float2LongMap m,
LongLongUnaryOperator mappingFunction)
A Bulk method for merging Maps.
|
long |
mergeLong(float key,
long value,
LongLongUnaryOperator 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() |
Float2LongMap.Entry |
pollFirstEntry() |
float |
pollFirstFloatKey()
A method to get and remove the first Key of a Map.
|
Float2LongMap.Entry |
pollLastEntry() |
float |
pollLastFloatKey()
A method to get and remove the last Key of a Map.
|
long |
put(float key,
long value)
Type Specific method to reduce boxing/unboxing of values
|
long |
putAndMoveToFirst(float key,
long value)
A customized put method that allows you to insert into the first index.
|
long |
putAndMoveToLast(float key,
long value)
A customized put method that allows you to insert into the last index.
|
long |
putIfAbsent(float key,
long value)
Type Specific method to reduce boxing/unboxing of values
|
long |
remFloat(float key)
Type Specific remove function to reduce boxing/unboxing
|
long |
remFloatOrDefault(float key,
long defaultValue)
Type-Specific Remove function with a default return value if wanted.
|
boolean |
remove(float key,
long value)
Type Specific remove function to reduce boxing/unboxing
|
long |
replace(float key,
long value)
A Type Specific replace method to reduce boxing/unboxing replace an existing value
|
boolean |
replace(float key,
long oldValue,
long 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() |
Float2LongNavigableMap |
subMap(float fromKey,
boolean fromInclusive,
float toKey,
boolean toInclusive)
A Type Specific SubMap method to reduce boxing/unboxing
|
Float2LongNavigableMap |
tailMap(float fromKey,
boolean inclusive)
A Type Specific TailMap method to reduce boxing/unboxing
|
LongCollection |
values() |
addToAll, containsValue, entrySet, equals, forEach, get, getDefaultReturnValue, getOrDefault, hashCode, putAll, putAll, putAll, putAllIfAbsent, replaceLongs, replaceLongs, 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, replaceLongs, replaceLongs, setDefaultReturnValuepublic Float2LongAVLTreeMap()
public Float2LongAVLTreeMap(FloatComparator comp)
comp - the function that decides how the tree is sorted, can be nullpublic Float2LongAVLTreeMap(java.lang.Float[] keys,
java.lang.Long[] 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 Float2LongAVLTreeMap(java.lang.Float[] keys,
java.lang.Long[] 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 Float2LongAVLTreeMap(float[] keys,
long[] 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 Float2LongAVLTreeMap(float[] keys,
long[] 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 Float2LongAVLTreeMap(java.util.Map<? extends java.lang.Float,? extends java.lang.Long> map)
map - the values that should be present in the mappublic Float2LongAVLTreeMap(java.util.Map<? extends java.lang.Float,? extends java.lang.Long> 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 Float2LongAVLTreeMap(Float2LongMap map)
map - the values that should be present in the mappublic Float2LongAVLTreeMap(Float2LongMap 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)
Float2LongNavigableMapsetDefaultMaxValue in interface Float2LongNavigableMapvalue - the new max valuepublic float getDefaultMaxValue()
Float2LongNavigableMapgetDefaultMaxValue in interface Float2LongNavigableMappublic void setDefaultMinValue(float value)
Float2LongNavigableMapsetDefaultMinValue in interface Float2LongNavigableMapvalue - the new min valuepublic float getDefaultMinValue()
Float2LongNavigableMapgetDefaultMinValue in interface Float2LongNavigableMappublic long put(float key,
long value)
Float2LongMapput in interface Float2LongMapkey - the key that should be inserted,value - the value that should be insertedMap.put(Object, Object)public long putIfAbsent(float key,
long value)
Float2LongMapputIfAbsent in interface Float2LongMapkey - the key that should be inserted,value - the value that should be insertedMap.putIfAbsent(Object, Object)public long addTo(float key,
long value)
Float2LongMapaddTo in interface Float2LongMapkey - the key that should be inserted,value - the value that should be inserted / addedpublic long putAndMoveToFirst(float key,
long value)
Float2LongSortedMapputAndMoveToFirst in interface Float2LongSortedMapkey - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public long putAndMoveToLast(float key,
long value)
Float2LongSortedMapputAndMoveToLast in interface Float2LongSortedMapkey - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public boolean moveToFirst(float key)
Float2LongSortedMapmoveToFirst in interface Float2LongSortedMapkey - that should be moved to the first indexpublic boolean moveToLast(float key)
Float2LongSortedMapmoveToLast in interface Float2LongSortedMapkey - that should be moved to the first lastpublic long getAndMoveToFirst(float key)
Float2LongSortedMapgetAndMoveToFirst in interface Float2LongSortedMapkey - that is searched forpublic long getAndMoveToLast(float key)
Float2LongSortedMapgetAndMoveToLast in interface Float2LongSortedMapkey - that is searched forpublic FloatComparator comparator()
comparator in interface java.util.SortedMap<java.lang.Float,java.lang.Long>comparator in interface Float2LongSortedMappublic boolean containsKey(float key)
Float2LongMapcontainsKey in interface Float2LongMapcontainsKey in class AbstractFloat2LongMapkey - element that is searched forpublic long getLong(float key)
Float2LongMapgetLong in interface Float2LongFunctiongetLong in interface Float2LongMapkey - the key that is searched forpublic long getOrDefault(float key,
long defaultValue)
Float2LongMapgetOrDefault in interface Float2LongMapgetOrDefault in class AbstractFloat2LongMapkey - the key that is searched fordefaultValue - the value that should be returned if the key is not presentpublic float firstFloatKey()
Float2LongSortedMapfirstFloatKey in interface Float2LongSortedMappublic float pollFirstFloatKey()
Float2LongSortedMappollFirstFloatKey in interface Float2LongSortedMappublic float lastFloatKey()
Float2LongSortedMaplastFloatKey in interface Float2LongSortedMappublic float pollLastFloatKey()
Float2LongSortedMappollLastFloatKey in interface Float2LongSortedMappublic Float2LongMap.Entry firstEntry()
firstEntry in interface java.util.NavigableMap<java.lang.Float,java.lang.Long>firstEntry in interface Float2LongNavigableMappublic Float2LongMap.Entry lastEntry()
lastEntry in interface java.util.NavigableMap<java.lang.Float,java.lang.Long>lastEntry in interface Float2LongNavigableMappublic Float2LongMap.Entry pollFirstEntry()
pollFirstEntry in interface java.util.NavigableMap<java.lang.Float,java.lang.Long>pollFirstEntry in interface Float2LongNavigableMappublic Float2LongMap.Entry pollLastEntry()
pollLastEntry in interface java.util.NavigableMap<java.lang.Float,java.lang.Long>pollLastEntry in interface Float2LongNavigableMappublic long firstLongValue()
Float2LongSortedMapfirstLongValue in interface Float2LongSortedMappublic long lastLongValue()
Float2LongSortedMaplastLongValue in interface Float2LongSortedMappublic long remFloat(float key)
Float2LongMapremFloat in interface Float2LongMapkey - the element that should be removedpublic long remFloatOrDefault(float key,
long defaultValue)
Float2LongMapremFloatOrDefault in interface Float2LongMapkey - 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,
long value)
Float2LongMapremove in interface Float2LongMapkey - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)public boolean replace(float key,
long oldValue,
long newValue)
Float2LongMapreplace in interface Float2LongMapreplace in class AbstractFloat2LongMapkey - the element that should be searched foroldValue - the expected value to be replacednewValue - the value to replace the oldValue with.public long replace(float key,
long value)
Float2LongMapreplace in interface Float2LongMapreplace in class AbstractFloat2LongMapkey - the element that should be searched forvalue - the value to replace with.public long computeLong(float key,
FloatLongUnaryOperator mappingFunction)
Float2LongMapcomputeLong in interface Float2LongMapcomputeLong in class AbstractFloat2LongMapkey - the key that should be computedmappingFunction - the operator that should generate the valuepublic long computeLongIfAbsent(float key,
Float2LongFunction mappingFunction)
Float2LongMapcomputeLongIfAbsent in interface Float2LongMapcomputeLongIfAbsent in class AbstractFloat2LongMapkey - the key that should be computedmappingFunction - the operator that should generate the value if not presentpublic long computeLongIfPresent(float key,
FloatLongUnaryOperator mappingFunction)
Float2LongMapcomputeLongIfPresent in interface Float2LongMapcomputeLongIfPresent in class AbstractFloat2LongMapkey - the key that should be computedmappingFunction - the operator that should generate the value if presentpublic long mergeLong(float key,
long value,
LongLongUnaryOperator mappingFunction)
Float2LongMapmergeLong in interface Float2LongMapmergeLong in class AbstractFloat2LongMapkey - the key that should be be searched forvalue - the value that should be merged withmappingFunction - the operator that should generate the new Valuepublic void mergeAllLong(Float2LongMap m, LongLongUnaryOperator mappingFunction)
Float2LongMapmergeAllLong in interface Float2LongMapmergeAllLong in class AbstractFloat2LongMapm - 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.Long>size in class java.util.AbstractMap<java.lang.Float,java.lang.Long>public void clear()
clear in interface java.util.Map<java.lang.Float,java.lang.Long>clear in class java.util.AbstractMap<java.lang.Float,java.lang.Long>public FloatSortedSet keySet()
keySet in interface java.util.Map<java.lang.Float,java.lang.Long>keySet in interface java.util.SortedMap<java.lang.Float,java.lang.Long>keySet in interface Float2LongMapkeySet in interface Float2LongSortedMapkeySet in class AbstractFloat2LongMappublic ObjectSet<Float2LongMap.Entry> float2LongEntrySet()
Float2LongMapfloat2LongEntrySet in interface Float2LongMappublic LongCollection values()
values in interface java.util.Map<java.lang.Float,java.lang.Long>values in interface java.util.SortedMap<java.lang.Float,java.lang.Long>values in interface Float2LongMapvalues in interface Float2LongSortedMapvalues in class AbstractFloat2LongMappublic FloatNavigableSet navigableKeySet()
navigableKeySet in interface java.util.NavigableMap<java.lang.Float,java.lang.Long>navigableKeySet in interface Float2LongNavigableMappublic Float2LongNavigableMap descendingMap()
descendingMap in interface java.util.NavigableMap<java.lang.Float,java.lang.Long>descendingMap in interface Float2LongNavigableMappublic FloatNavigableSet descendingKeySet()
descendingKeySet in interface java.util.NavigableMap<java.lang.Float,java.lang.Long>descendingKeySet in interface Float2LongNavigableMappublic Float2LongNavigableMap subMap(float fromKey, boolean fromInclusive, float toKey, boolean toInclusive)
Float2LongNavigableMapsubMap in interface Float2LongNavigableMapfromKey - where the submap should startfromInclusive - if the fromKey is inclusive or nottoKey - where the subMap should endtoInclusive - if the toKey is inclusive or notpublic Float2LongNavigableMap headMap(float toKey, boolean inclusive)
Float2LongNavigableMapheadMap in interface Float2LongNavigableMaptoKey - where the HeadMap should endinclusive - if the toKey is inclusive or notpublic Float2LongNavigableMap tailMap(float fromKey, boolean inclusive)
Float2LongNavigableMaptailMap in interface Float2LongNavigableMapfromKey - where the TailMap should startinclusive - if the fromKey is inclusive or notpublic float lowerKey(float e)
Float2LongNavigableMaplowerKey in interface Float2LongNavigableMape - that should be compared with.public float floorKey(float e)
Float2LongNavigableMapfloorKey in interface Float2LongNavigableMape - that should be compared with.public float higherKey(float e)
Float2LongNavigableMaphigherKey in interface Float2LongNavigableMape - that should be compared with.public float ceilingKey(float e)
Float2LongNavigableMapceilingKey in interface Float2LongNavigableMape - that should be compared with.public Float2LongMap.Entry lowerEntry(float key)
Float2LongNavigableMaplowerEntry in interface Float2LongNavigableMapkey - that should be compared with.public Float2LongMap.Entry higherEntry(float key)
Float2LongNavigableMaphigherEntry in interface Float2LongNavigableMapkey - that should be compared with.public Float2LongMap.Entry floorEntry(float key)
Float2LongNavigableMapfloorEntry in interface Float2LongNavigableMapkey - that should be compared with.public Float2LongMap.Entry ceilingEntry(float key)
Float2LongNavigableMapceilingEntry in interface Float2LongNavigableMapkey - that should be compared with.