public class Float2ByteAVLTreeMap extends AbstractFloat2ByteMap implements Float2ByteNavigableMap
AbstractFloat2ByteMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Float2ByteSortedMap.FastSortedSetFloat2ByteMap.BuilderCache, Float2ByteMap.Entry, Float2ByteMap.FastEntrySet, Float2ByteMap.MapBuilder| Constructor and Description |
|---|
Float2ByteAVLTreeMap()
Default Constructor
|
Float2ByteAVLTreeMap(float[] keys,
byte[] values)
Helper constructor that allow to create a map from unboxed values
|
Float2ByteAVLTreeMap(java.lang.Float[] keys,
java.lang.Byte[] values)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Float2ByteAVLTreeMap(float[] keys,
byte[] values,
FloatComparator comp)
Helper constructor that has a custom sorter and allow to create a map from unboxed values
|
Float2ByteAVLTreeMap(java.lang.Float[] keys,
java.lang.Byte[] values,
FloatComparator comp)
Helper constructor that has a custom sorter and allow to create a map from boxed values (it will unbox them)
|
Float2ByteAVLTreeMap(Float2ByteMap map)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Float2ByteAVLTreeMap(Float2ByteMap 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.
|
Float2ByteAVLTreeMap(FloatComparator comp)
Constructor that allows to define the sorter
|
Float2ByteAVLTreeMap(java.util.Map<? extends java.lang.Float,? extends java.lang.Byte> map)
A Helper constructor that allows to create a Map with exactly the same values as the provided map.
|
Float2ByteAVLTreeMap(java.util.Map<? extends java.lang.Float,? extends java.lang.Byte> 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 |
|---|---|
byte |
addTo(float key,
byte value)
A Helper method to add a primitives together.
|
Float2ByteMap.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() |
byte |
computeByte(float key,
FloatByteUnaryOperator mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
byte |
computeByteIfAbsent(float key,
Float2ByteFunction mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
byte |
computeByteIfPresent(float key,
FloatByteUnaryOperator mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
boolean |
containsKey(float key)
Type Specific method to reduce boxing/unboxing of values
|
Float2ByteAVLTreeMap |
copy()
A Function that does a shallow clone of the Map itself.
|
FloatNavigableSet |
descendingKeySet() |
Float2ByteNavigableMap |
descendingMap() |
byte |
firstByteValue()
A method to get the first Value of a Map.
|
Float2ByteMap.Entry |
firstEntry() |
float |
firstFloatKey()
A method to get the first Key of a Map.
|
ObjectSet<Float2ByteMap.Entry> |
float2ByteEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
Float2ByteMap.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.
|
void |
forEach(FloatByteConsumer action)
Type Specific forEach method to reduce boxing/unboxing
|
byte |
get(float key)
A Type Specific get method to reduce boxing/unboxing
|
float |
getDefaultMaxValue()
A Helper method to get the max value for SubMaps.
|
float |
getDefaultMinValue()
A Helper method to get the min value for SubMaps.
|
byte |
getOrDefault(float key,
byte defaultValue)
A Type Specific getOrDefault method to reduce boxing/unboxing
|
Float2ByteNavigableMap |
headMap(float toKey,
boolean inclusive)
A Type Specific HeadMap method to reduce boxing/unboxing
|
Float2ByteMap.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.
|
FloatNavigableSet |
keySet() |
byte |
lastByteValue()
A method to get the last Value of a Map.
|
Float2ByteMap.Entry |
lastEntry() |
float |
lastFloatKey()
A method to get the last Key of a Map.
|
Float2ByteMap.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 |
mergeAllByte(Float2ByteMap m,
ByteByteUnaryOperator mappingFunction)
A Bulk method for merging Maps.
|
byte |
mergeByte(float key,
byte value,
ByteByteUnaryOperator mappingFunction)
A Type Specific merge method to reduce boxing/unboxing
|
FloatNavigableSet |
navigableKeySet() |
Float2ByteMap.Entry |
pollFirstEntry() |
float |
pollFirstFloatKey()
A method to get and remove the first Key of a Map.
|
Float2ByteMap.Entry |
pollLastEntry() |
float |
pollLastFloatKey()
A method to get and remove the last Key of a Map.
|
byte |
put(float key,
byte value)
Type Specific method to reduce boxing/unboxing of values
|
byte |
putIfAbsent(float key,
byte value)
Type Specific method to reduce boxing/unboxing of values
|
byte |
remove(float key)
Type Specific remove function to reduce boxing/unboxing
|
boolean |
remove(float key,
byte value)
Type Specific remove function to reduce boxing/unboxing
|
byte |
removeOrDefault(float key,
byte defaultValue)
Type-Specific Remove function with a default return value if wanted.
|
byte |
replace(float key,
byte value)
A Type Specific replace method to reduce boxing/unboxing replace an existing value
|
boolean |
replace(float key,
byte oldValue,
byte 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() |
byte |
subFrom(float key,
byte value)
A Helper method to subtract from primitive from each other.
|
Float2ByteNavigableMap |
subMap(float fromKey,
boolean fromInclusive,
float toKey,
boolean toInclusive)
A Type Specific SubMap method to reduce boxing/unboxing
|
byte |
supplyByteIfAbsent(float key,
ByteSupplier valueProvider)
A Supplier based computeIfAbsent function to fill the most used usecase of this function
|
Float2ByteNavigableMap |
tailMap(float fromKey,
boolean inclusive)
A Type Specific TailMap method to reduce boxing/unboxing
|
ByteCollection |
values() |
addToAll, containsValue, entrySet, equals, get, getDefaultReturnValue, getOrDefault, hashCode, put, putAll, putAll, putAll, putAll, putAllIfAbsent, remove, replaceBytes, replaceBytes, setDefaultReturnValueceilingEntry, ceilingKey, floorEntry, floorKey, headMap, headMap, headMap, higherEntry, higherKey, lowerEntry, lowerKey, subMap, subMap, subMap, synchronize, synchronize, tailMap, tailMap, tailMap, unmodifiablefirstKey, lastKeyaddToAll, applyAsByte, builder, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, containsValue, entrySet, forEach, get, getDefaultReturnValue, getOrDefault, merge, put, put, put, putAll, putAll, putAll, putAll, putAll, putAllIfAbsent, putIfAbsent, remove, remove, replace, replace, replaceAll, replaceBytes, replaceBytes, setDefaultReturnValuepublic Float2ByteAVLTreeMap()
public Float2ByteAVLTreeMap(FloatComparator comp)
comp - the function that decides how the tree is sorted, can be nullpublic Float2ByteAVLTreeMap(java.lang.Float[] keys,
java.lang.Byte[] 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 Float2ByteAVLTreeMap(java.lang.Float[] keys,
java.lang.Byte[] 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 Float2ByteAVLTreeMap(float[] keys,
byte[] 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 Float2ByteAVLTreeMap(float[] keys,
byte[] 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 Float2ByteAVLTreeMap(java.util.Map<? extends java.lang.Float,? extends java.lang.Byte> map)
map - the values that should be present in the mappublic Float2ByteAVLTreeMap(java.util.Map<? extends java.lang.Float,? extends java.lang.Byte> 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 Float2ByteAVLTreeMap(Float2ByteMap map)
map - the values that should be present in the mappublic Float2ByteAVLTreeMap(Float2ByteMap 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)
Float2ByteNavigableMapsetDefaultMaxValue in interface Float2ByteNavigableMapvalue - the new max valuepublic float getDefaultMaxValue()
Float2ByteNavigableMapgetDefaultMaxValue in interface Float2ByteNavigableMappublic void setDefaultMinValue(float value)
Float2ByteNavigableMapsetDefaultMinValue in interface Float2ByteNavigableMapvalue - the new min valuepublic float getDefaultMinValue()
Float2ByteNavigableMapgetDefaultMinValue in interface Float2ByteNavigableMappublic byte put(float key,
byte value)
Float2ByteMapput in interface Float2ByteMapkey - the key that should be inserted,value - the value that should be insertedMap.put(Object, Object)public byte putIfAbsent(float key,
byte value)
Float2ByteMapputIfAbsent in interface Float2ByteMapkey - the key that should be inserted,value - the value that should be insertedMap.putIfAbsent(Object, Object)public byte addTo(float key,
byte value)
Float2ByteMapaddTo in interface Float2ByteMapkey - the key that should be inserted,value - the value that should be inserted / addedpublic byte subFrom(float key,
byte value)
Float2ByteMapFloat2ByteMap.getDefaultReturnValue()
If the fence is reached the element will be automaticall removedsubFrom in interface Float2ByteMapkey - that should be subtract fromvalue - that should be subtractpublic FloatComparator comparator()
comparator in interface java.util.SortedMap<java.lang.Float,java.lang.Byte>comparator in interface Float2ByteSortedMappublic boolean containsKey(float key)
Float2ByteMapcontainsKey in interface Float2ByteMapcontainsKey in class AbstractFloat2ByteMapkey - element that is searched forpublic byte get(float key)
Float2ByteMapget in interface Float2ByteMapkey - the key that is searched forpublic byte getOrDefault(float key,
byte defaultValue)
Float2ByteMapgetOrDefault in interface Float2ByteMapgetOrDefault in class AbstractFloat2ByteMapkey - the key that is searched fordefaultValue - the value that should be returned if the key is not presentpublic float firstFloatKey()
Float2ByteSortedMapfirstFloatKey in interface Float2ByteSortedMappublic float pollFirstFloatKey()
Float2ByteSortedMappollFirstFloatKey in interface Float2ByteSortedMappublic float lastFloatKey()
Float2ByteSortedMaplastFloatKey in interface Float2ByteSortedMappublic float pollLastFloatKey()
Float2ByteSortedMappollLastFloatKey in interface Float2ByteSortedMappublic Float2ByteMap.Entry firstEntry()
firstEntry in interface java.util.NavigableMap<java.lang.Float,java.lang.Byte>firstEntry in interface Float2ByteNavigableMappublic Float2ByteMap.Entry lastEntry()
lastEntry in interface java.util.NavigableMap<java.lang.Float,java.lang.Byte>lastEntry in interface Float2ByteNavigableMappublic Float2ByteMap.Entry pollFirstEntry()
pollFirstEntry in interface java.util.NavigableMap<java.lang.Float,java.lang.Byte>pollFirstEntry in interface Float2ByteNavigableMappublic Float2ByteMap.Entry pollLastEntry()
pollLastEntry in interface java.util.NavigableMap<java.lang.Float,java.lang.Byte>pollLastEntry in interface Float2ByteNavigableMappublic byte firstByteValue()
Float2ByteSortedMapfirstByteValue in interface Float2ByteSortedMappublic byte lastByteValue()
Float2ByteSortedMaplastByteValue in interface Float2ByteSortedMappublic byte remove(float key)
Float2ByteMapremove in interface Float2ByteMapkey - the element that should be removedpublic byte removeOrDefault(float key,
byte defaultValue)
Float2ByteMapremoveOrDefault in interface Float2ByteMapkey - 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,
byte value)
Float2ByteMapremove in interface Float2ByteMapkey - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)public boolean replace(float key,
byte oldValue,
byte newValue)
Float2ByteMapreplace in interface Float2ByteMapreplace in class AbstractFloat2ByteMapkey - the element that should be searched foroldValue - the expected value to be replacednewValue - the value to replace the oldValue with.public byte replace(float key,
byte value)
Float2ByteMapreplace in interface Float2ByteMapreplace in class AbstractFloat2ByteMapkey - the element that should be searched forvalue - the value to replace with.public byte computeByte(float key,
FloatByteUnaryOperator mappingFunction)
Float2ByteMapcomputeByte in interface Float2ByteMapcomputeByte in class AbstractFloat2ByteMapkey - the key that should be computedmappingFunction - the operator that should generate the valuepublic byte computeByteIfAbsent(float key,
Float2ByteFunction mappingFunction)
Float2ByteMapcomputeByteIfAbsent in interface Float2ByteMapcomputeByteIfAbsent in class AbstractFloat2ByteMapkey - the key that should be computedmappingFunction - the operator that should generate the value if not presentpublic byte supplyByteIfAbsent(float key,
ByteSupplier valueProvider)
Float2ByteMapsupplyByteIfAbsent in interface Float2ByteMapsupplyByteIfAbsent in class AbstractFloat2ByteMapkey - the key that should be computedvalueProvider - the value if not presentpublic byte computeByteIfPresent(float key,
FloatByteUnaryOperator mappingFunction)
Float2ByteMapcomputeByteIfPresent in interface Float2ByteMapcomputeByteIfPresent in class AbstractFloat2ByteMapkey - the key that should be computedmappingFunction - the operator that should generate the value if presentpublic byte mergeByte(float key,
byte value,
ByteByteUnaryOperator mappingFunction)
Float2ByteMapmergeByte in interface Float2ByteMapmergeByte in class AbstractFloat2ByteMapkey - the key that should be be searched forvalue - the value that should be merged withmappingFunction - the operator that should generate the new Valuepublic void mergeAllByte(Float2ByteMap m, ByteByteUnaryOperator mappingFunction)
Float2ByteMapmergeAllByte in interface Float2ByteMapmergeAllByte in class AbstractFloat2ByteMapm - the entries that should be bulk addedmappingFunction - the operator that should generate the new Valuepublic void forEach(FloatByteConsumer action)
Float2ByteMapforEach in interface Float2ByteMapforEach in class AbstractFloat2ByteMapaction - processor of the values that are iterator overpublic int size()
size in interface java.util.Map<java.lang.Float,java.lang.Byte>size in class java.util.AbstractMap<java.lang.Float,java.lang.Byte>public void clear()
clear in interface java.util.Map<java.lang.Float,java.lang.Byte>clear in class java.util.AbstractMap<java.lang.Float,java.lang.Byte>public Float2ByteAVLTreeMap copy()
Float2ByteMapcopy in interface Float2ByteMapcopy in interface Float2ByteNavigableMapcopy in interface Float2ByteSortedMapcopy in class AbstractFloat2ByteMappublic FloatNavigableSet keySet()
keySet in interface java.util.Map<java.lang.Float,java.lang.Byte>keySet in interface java.util.SortedMap<java.lang.Float,java.lang.Byte>keySet in interface Float2ByteMapkeySet in interface Float2ByteNavigableMapkeySet in interface Float2ByteSortedMapkeySet in class AbstractFloat2ByteMappublic ObjectSet<Float2ByteMap.Entry> float2ByteEntrySet()
Float2ByteMapfloat2ByteEntrySet in interface Float2ByteMappublic ByteCollection values()
values in interface java.util.Map<java.lang.Float,java.lang.Byte>values in interface java.util.SortedMap<java.lang.Float,java.lang.Byte>values in interface Float2ByteMapvalues in interface Float2ByteSortedMapvalues in class AbstractFloat2ByteMappublic FloatNavigableSet navigableKeySet()
navigableKeySet in interface java.util.NavigableMap<java.lang.Float,java.lang.Byte>navigableKeySet in interface Float2ByteNavigableMappublic Float2ByteNavigableMap descendingMap()
descendingMap in interface java.util.NavigableMap<java.lang.Float,java.lang.Byte>descendingMap in interface Float2ByteNavigableMappublic FloatNavigableSet descendingKeySet()
descendingKeySet in interface java.util.NavigableMap<java.lang.Float,java.lang.Byte>descendingKeySet in interface Float2ByteNavigableMappublic Float2ByteNavigableMap subMap(float fromKey, boolean fromInclusive, float toKey, boolean toInclusive)
Float2ByteNavigableMapsubMap in interface Float2ByteNavigableMapfromKey - where the submap should startfromInclusive - if the fromKey is inclusive or nottoKey - where the subMap should endtoInclusive - if the toKey is inclusive or notpublic Float2ByteNavigableMap headMap(float toKey, boolean inclusive)
Float2ByteNavigableMapheadMap in interface Float2ByteNavigableMaptoKey - where the HeadMap should endinclusive - if the toKey is inclusive or notpublic Float2ByteNavigableMap tailMap(float fromKey, boolean inclusive)
Float2ByteNavigableMaptailMap in interface Float2ByteNavigableMapfromKey - where the TailMap should startinclusive - if the fromKey is inclusive or notpublic float lowerKey(float e)
Float2ByteNavigableMaplowerKey in interface Float2ByteNavigableMape - that should be compared with.public float floorKey(float e)
Float2ByteNavigableMapfloorKey in interface Float2ByteNavigableMape - that should be compared with.public float higherKey(float e)
Float2ByteNavigableMaphigherKey in interface Float2ByteNavigableMape - that should be compared with.public float ceilingKey(float e)
Float2ByteNavigableMapceilingKey in interface Float2ByteNavigableMape - that should be compared with.public Float2ByteMap.Entry lowerEntry(float key)
Float2ByteNavigableMaplowerEntry in interface Float2ByteNavigableMapkey - that should be compared with.public Float2ByteMap.Entry higherEntry(float key)
Float2ByteNavigableMaphigherEntry in interface Float2ByteNavigableMapkey - that should be compared with.public Float2ByteMap.Entry floorEntry(float key)
Float2ByteNavigableMapfloorEntry in interface Float2ByteNavigableMapkey - that should be compared with.public Float2ByteMap.Entry ceilingEntry(float key)
Float2ByteNavigableMapceilingEntry in interface Float2ByteNavigableMapkey - that should be compared with.