public class Byte2FloatRBTreeMap extends AbstractByte2FloatMap implements Byte2FloatNavigableMap
AbstractByte2FloatMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Byte2FloatSortedMap.FastSortedSetByte2FloatMap.FastEntrySet| Constructor and Description |
|---|
Byte2FloatRBTreeMap()
Default Constructor
|
Byte2FloatRBTreeMap(byte[] keys,
float[] values)
Helper constructor that allow to create a map from unboxed values
|
Byte2FloatRBTreeMap(java.lang.Byte[] keys,
java.lang.Float[] values)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Byte2FloatRBTreeMap(byte[] keys,
float[] values,
ByteComparator comp)
Helper constructor that has a custom sorter and allow to create a map from unboxed values
|
Byte2FloatRBTreeMap(java.lang.Byte[] keys,
java.lang.Float[] values,
ByteComparator comp)
Helper constructor that has a custom sorter and allow to create a map from boxed values (it will unbox them)
|
Byte2FloatRBTreeMap(Byte2FloatMap map)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Byte2FloatRBTreeMap(Byte2FloatMap map,
ByteComparator 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.
|
Byte2FloatRBTreeMap(ByteComparator comp)
Constructor that allows to define the sorter
|
Byte2FloatRBTreeMap(java.util.Map<? extends java.lang.Byte,? extends java.lang.Float> map)
A Helper constructor that allows to create a Map with exactly the same values as the provided map.
|
Byte2FloatRBTreeMap(java.util.Map<? extends java.lang.Byte,? extends java.lang.Float> map,
ByteComparator 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(byte key,
float value)
A Helper method to add a primitives together.
|
ObjectSet<Byte2FloatMap.Entry> |
byte2FloatEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
Byte2FloatMap.Entry |
ceilingEntry(byte key)
A Type Specific ceilingEntry method to reduce boxing/unboxing.
|
byte |
ceilingKey(byte e)
A Type Specific ceilingKey method to reduce boxing/unboxing.
|
void |
clear() |
ByteComparator |
comparator() |
float |
computeFloat(byte key,
ByteFloatUnaryOperator mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
float |
computeFloatIfAbsent(byte key,
Byte2FloatFunction mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
float |
computeFloatIfPresent(byte key,
ByteFloatUnaryOperator mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
boolean |
containsKey(byte key)
Type Specific method to reduce boxing/unboxing of values
|
ByteNavigableSet |
descendingKeySet() |
Byte2FloatNavigableMap |
descendingMap() |
byte |
firstByteKey()
A method to get the first Key of a Map.
|
Byte2FloatMap.Entry |
firstEntry() |
float |
firstFloatValue()
A method to get the first Value of a Map.
|
Byte2FloatMap.Entry |
floorEntry(byte key)
A Type Specific floorEntry method to reduce boxing/unboxing.
|
byte |
floorKey(byte e)
A Type Specific floorKey method to reduce boxing/unboxing.
|
float |
getAndMoveToFirst(byte key)
A Specific get method that allows to move teh given key/value int the first index.
|
float |
getAndMoveToLast(byte key)
A Specific get method that allows to move teh given key/value int the last index.
|
byte |
getDefaultMaxValue()
A Helper method to get the max value for SubMaps.
|
byte |
getDefaultMinValue()
A Helper method to get the min value for SubMaps.
|
float |
getFloat(byte key)
A Type Specific get method to reduce boxing/unboxing
|
float |
getOrDefault(byte key,
float defaultValue)
A Type Specific getOrDefault method to reduce boxing/unboxing
|
Byte2FloatNavigableMap |
headMap(byte toKey,
boolean inclusive)
A Type Specific HeadMap method to reduce boxing/unboxing
|
Byte2FloatMap.Entry |
higherEntry(byte key)
A Type Specific higherEntry method to reduce boxing/unboxing.
|
byte |
higherKey(byte e)
A Type Specific higherKey method to reduce boxing/unboxing.
|
ByteSortedSet |
keySet() |
byte |
lastByteKey()
A method to get the last Key of a Map.
|
Byte2FloatMap.Entry |
lastEntry() |
float |
lastFloatValue()
A method to get the last Value of a Map.
|
Byte2FloatMap.Entry |
lowerEntry(byte key)
A Type Specific lowerEntry method to reduce boxing/unboxing.
|
byte |
lowerKey(byte e)
A Type Specific lowerKey method to reduce boxing/unboxing.
|
void |
mergeAllFloat(Byte2FloatMap m,
FloatFloatUnaryOperator mappingFunction)
A Bulk method for merging Maps.
|
float |
mergeFloat(byte key,
float value,
FloatFloatUnaryOperator mappingFunction)
A Type Specific merge method to reduce boxing/unboxing
|
boolean |
moveToFirst(byte key)
A specific move method to move a given key/value to the first index.
|
boolean |
moveToLast(byte key)
A specific move method to move a given key/value to the last index.
|
ByteNavigableSet |
navigableKeySet() |
byte |
pollFirstByteKey()
A method to get and remove the first Key of a Map.
|
Byte2FloatMap.Entry |
pollFirstEntry() |
byte |
pollLastByteKey()
A method to get and remove the last Key of a Map.
|
Byte2FloatMap.Entry |
pollLastEntry() |
float |
put(byte key,
float value)
Type Specific method to reduce boxing/unboxing of values
|
float |
putAndMoveToFirst(byte key,
float value)
A customized put method that allows you to insert into the first index.
|
float |
putAndMoveToLast(byte key,
float value)
A customized put method that allows you to insert into the last index.
|
float |
putIfAbsent(byte key,
float value)
Type Specific method to reduce boxing/unboxing of values
|
float |
remByte(byte key)
Type Specific remove function to reduce boxing/unboxing
|
float |
remByteOrDefault(byte key,
float defaultValue)
Type-Specific Remove function with a default return value if wanted.
|
boolean |
remove(byte key,
float value)
Type Specific remove function to reduce boxing/unboxing
|
float |
replace(byte key,
float value)
A Type Specific replace method to reduce boxing/unboxing replace an existing value
|
boolean |
replace(byte key,
float oldValue,
float newValue)
A Type Specific replace method to replace an existing value
|
void |
setDefaultMaxValue(byte value)
A Helper method to set the max value for SubMaps.
|
void |
setDefaultMinValue(byte value)
A Helper method to set the min value for SubMaps.
|
int |
size() |
Byte2FloatNavigableMap |
subMap(byte fromKey,
boolean fromInclusive,
byte toKey,
boolean toInclusive)
A Type Specific SubMap method to reduce boxing/unboxing
|
Byte2FloatNavigableMap |
tailMap(byte 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 Byte2FloatRBTreeMap()
public Byte2FloatRBTreeMap(ByteComparator comp)
comp - the function that decides how the tree is sorted, can be nullpublic Byte2FloatRBTreeMap(java.lang.Byte[] 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 Byte2FloatRBTreeMap(java.lang.Byte[] keys,
java.lang.Float[] values,
ByteComparator 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 Byte2FloatRBTreeMap(byte[] 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 Byte2FloatRBTreeMap(byte[] keys,
float[] values,
ByteComparator 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 Byte2FloatRBTreeMap(java.util.Map<? extends java.lang.Byte,? extends java.lang.Float> map)
map - the values that should be present in the mappublic Byte2FloatRBTreeMap(java.util.Map<? extends java.lang.Byte,? extends java.lang.Float> map,
ByteComparator comp)
map - the values that should be present in the mapcomp - the function that decides how the tree is sorted, can be nullpublic Byte2FloatRBTreeMap(Byte2FloatMap map)
map - the values that should be present in the mappublic Byte2FloatRBTreeMap(Byte2FloatMap map, ByteComparator 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(byte value)
Byte2FloatNavigableMapsetDefaultMaxValue in interface Byte2FloatNavigableMapvalue - the new max valuepublic byte getDefaultMaxValue()
Byte2FloatNavigableMapgetDefaultMaxValue in interface Byte2FloatNavigableMappublic void setDefaultMinValue(byte value)
Byte2FloatNavigableMapsetDefaultMinValue in interface Byte2FloatNavigableMapvalue - the new min valuepublic byte getDefaultMinValue()
Byte2FloatNavigableMapgetDefaultMinValue in interface Byte2FloatNavigableMappublic float put(byte key,
float value)
Byte2FloatMapput in interface Byte2FloatMapkey - the key that should be inserted,value - the value that should be insertedMap.put(Object, Object)public float putIfAbsent(byte key,
float value)
Byte2FloatMapputIfAbsent in interface Byte2FloatMapkey - the key that should be inserted,value - the value that should be insertedMap.putIfAbsent(Object, Object)public float addTo(byte key,
float value)
Byte2FloatMapaddTo in interface Byte2FloatMapkey - the key that should be inserted,value - the value that should be inserted / addedpublic float putAndMoveToFirst(byte key,
float value)
Byte2FloatSortedMapputAndMoveToFirst in interface Byte2FloatSortedMapkey - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public float putAndMoveToLast(byte key,
float value)
Byte2FloatSortedMapputAndMoveToLast in interface Byte2FloatSortedMapkey - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public boolean moveToFirst(byte key)
Byte2FloatSortedMapmoveToFirst in interface Byte2FloatSortedMapkey - that should be moved to the first indexpublic boolean moveToLast(byte key)
Byte2FloatSortedMapmoveToLast in interface Byte2FloatSortedMapkey - that should be moved to the first lastpublic float getAndMoveToFirst(byte key)
Byte2FloatSortedMapgetAndMoveToFirst in interface Byte2FloatSortedMapkey - that is searched forpublic float getAndMoveToLast(byte key)
Byte2FloatSortedMapgetAndMoveToLast in interface Byte2FloatSortedMapkey - that is searched forpublic ByteComparator comparator()
comparator in interface java.util.SortedMap<java.lang.Byte,java.lang.Float>comparator in interface Byte2FloatSortedMappublic boolean containsKey(byte key)
Byte2FloatMapcontainsKey in interface Byte2FloatMapcontainsKey in class AbstractByte2FloatMapkey - element that is searched forpublic float getFloat(byte key)
Byte2FloatMapgetFloat in interface Byte2FloatFunctiongetFloat in interface Byte2FloatMapkey - the key that is searched forpublic float getOrDefault(byte key,
float defaultValue)
Byte2FloatMapgetOrDefault in interface Byte2FloatMapgetOrDefault in class AbstractByte2FloatMapkey - the key that is searched fordefaultValue - the value that should be returned if the key is not presentpublic byte firstByteKey()
Byte2FloatSortedMapfirstByteKey in interface Byte2FloatSortedMappublic byte pollFirstByteKey()
Byte2FloatSortedMappollFirstByteKey in interface Byte2FloatSortedMappublic byte lastByteKey()
Byte2FloatSortedMaplastByteKey in interface Byte2FloatSortedMappublic byte pollLastByteKey()
Byte2FloatSortedMappollLastByteKey in interface Byte2FloatSortedMappublic Byte2FloatMap.Entry firstEntry()
firstEntry in interface java.util.NavigableMap<java.lang.Byte,java.lang.Float>firstEntry in interface Byte2FloatNavigableMappublic Byte2FloatMap.Entry lastEntry()
lastEntry in interface java.util.NavigableMap<java.lang.Byte,java.lang.Float>lastEntry in interface Byte2FloatNavigableMappublic Byte2FloatMap.Entry pollFirstEntry()
pollFirstEntry in interface java.util.NavigableMap<java.lang.Byte,java.lang.Float>pollFirstEntry in interface Byte2FloatNavigableMappublic Byte2FloatMap.Entry pollLastEntry()
pollLastEntry in interface java.util.NavigableMap<java.lang.Byte,java.lang.Float>pollLastEntry in interface Byte2FloatNavigableMappublic float firstFloatValue()
Byte2FloatSortedMapfirstFloatValue in interface Byte2FloatSortedMappublic float lastFloatValue()
Byte2FloatSortedMaplastFloatValue in interface Byte2FloatSortedMappublic float remByte(byte key)
Byte2FloatMapremByte in interface Byte2FloatMapkey - the element that should be removedpublic float remByteOrDefault(byte key,
float defaultValue)
Byte2FloatMapremByteOrDefault in interface Byte2FloatMapkey - the element that should be removeddefaultValue - the value that should be returned if the entry doesn't existMap.remove(Object, Object)public boolean remove(byte key,
float value)
Byte2FloatMapremove in interface Byte2FloatMapkey - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)public boolean replace(byte key,
float oldValue,
float newValue)
Byte2FloatMapreplace in interface Byte2FloatMapreplace in class AbstractByte2FloatMapkey - the element that should be searched foroldValue - the expected value to be replacednewValue - the value to replace the oldValue with.public float replace(byte key,
float value)
Byte2FloatMapreplace in interface Byte2FloatMapreplace in class AbstractByte2FloatMapkey - the element that should be searched forvalue - the value to replace with.public float computeFloat(byte key,
ByteFloatUnaryOperator mappingFunction)
Byte2FloatMapcomputeFloat in interface Byte2FloatMapcomputeFloat in class AbstractByte2FloatMapkey - the key that should be computedmappingFunction - the operator that should generate the valuepublic float computeFloatIfAbsent(byte key,
Byte2FloatFunction mappingFunction)
Byte2FloatMapcomputeFloatIfAbsent in interface Byte2FloatMapcomputeFloatIfAbsent in class AbstractByte2FloatMapkey - the key that should be computedmappingFunction - the operator that should generate the value if not presentpublic float computeFloatIfPresent(byte key,
ByteFloatUnaryOperator mappingFunction)
Byte2FloatMapcomputeFloatIfPresent in interface Byte2FloatMapcomputeFloatIfPresent in class AbstractByte2FloatMapkey - the key that should be computedmappingFunction - the operator that should generate the value if presentpublic float mergeFloat(byte key,
float value,
FloatFloatUnaryOperator mappingFunction)
Byte2FloatMapmergeFloat in interface Byte2FloatMapmergeFloat in class AbstractByte2FloatMapkey - 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(Byte2FloatMap m, FloatFloatUnaryOperator mappingFunction)
Byte2FloatMapmergeAllFloat in interface Byte2FloatMapmergeAllFloat in class AbstractByte2FloatMapm - 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.Byte,java.lang.Float>size in class java.util.AbstractMap<java.lang.Byte,java.lang.Float>public void clear()
clear in interface java.util.Map<java.lang.Byte,java.lang.Float>clear in class java.util.AbstractMap<java.lang.Byte,java.lang.Float>public ByteSortedSet keySet()
keySet in interface java.util.Map<java.lang.Byte,java.lang.Float>keySet in interface java.util.SortedMap<java.lang.Byte,java.lang.Float>keySet in interface Byte2FloatMapkeySet in interface Byte2FloatSortedMapkeySet in class AbstractByte2FloatMappublic ObjectSet<Byte2FloatMap.Entry> byte2FloatEntrySet()
Byte2FloatMapbyte2FloatEntrySet in interface Byte2FloatMappublic FloatCollection values()
values in interface java.util.Map<java.lang.Byte,java.lang.Float>values in interface java.util.SortedMap<java.lang.Byte,java.lang.Float>values in interface Byte2FloatMapvalues in interface Byte2FloatSortedMapvalues in class AbstractByte2FloatMappublic ByteNavigableSet navigableKeySet()
navigableKeySet in interface java.util.NavigableMap<java.lang.Byte,java.lang.Float>navigableKeySet in interface Byte2FloatNavigableMappublic Byte2FloatNavigableMap descendingMap()
descendingMap in interface java.util.NavigableMap<java.lang.Byte,java.lang.Float>descendingMap in interface Byte2FloatNavigableMappublic ByteNavigableSet descendingKeySet()
descendingKeySet in interface java.util.NavigableMap<java.lang.Byte,java.lang.Float>descendingKeySet in interface Byte2FloatNavigableMappublic Byte2FloatNavigableMap subMap(byte fromKey, boolean fromInclusive, byte toKey, boolean toInclusive)
Byte2FloatNavigableMapsubMap in interface Byte2FloatNavigableMapfromKey - where the submap should startfromInclusive - if the fromKey is inclusive or nottoKey - where the subMap should endtoInclusive - if the toKey is inclusive or notpublic Byte2FloatNavigableMap headMap(byte toKey, boolean inclusive)
Byte2FloatNavigableMapheadMap in interface Byte2FloatNavigableMaptoKey - where the HeadMap should endinclusive - if the toKey is inclusive or notpublic Byte2FloatNavigableMap tailMap(byte fromKey, boolean inclusive)
Byte2FloatNavigableMaptailMap in interface Byte2FloatNavigableMapfromKey - where the TailMap should startinclusive - if the fromKey is inclusive or notpublic byte lowerKey(byte e)
Byte2FloatNavigableMaplowerKey in interface Byte2FloatNavigableMape - that should be compared with.public byte floorKey(byte e)
Byte2FloatNavigableMapfloorKey in interface Byte2FloatNavigableMape - that should be compared with.public byte higherKey(byte e)
Byte2FloatNavigableMaphigherKey in interface Byte2FloatNavigableMape - that should be compared with.public byte ceilingKey(byte e)
Byte2FloatNavigableMapceilingKey in interface Byte2FloatNavigableMape - that should be compared with.public Byte2FloatMap.Entry lowerEntry(byte key)
Byte2FloatNavigableMaplowerEntry in interface Byte2FloatNavigableMapkey - that should be compared with.public Byte2FloatMap.Entry higherEntry(byte key)
Byte2FloatNavigableMaphigherEntry in interface Byte2FloatNavigableMapkey - that should be compared with.public Byte2FloatMap.Entry floorEntry(byte key)
Byte2FloatNavigableMapfloorEntry in interface Byte2FloatNavigableMapkey - that should be compared with.public Byte2FloatMap.Entry ceilingEntry(byte key)
Byte2FloatNavigableMapceilingEntry in interface Byte2FloatNavigableMapkey - that should be compared with.