public class Float2BooleanRBTreeMap extends AbstractFloat2BooleanMap implements Float2BooleanNavigableMap
AbstractFloat2BooleanMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Float2BooleanSortedMap.FastSortedSetFloat2BooleanMap.BuilderCache, Float2BooleanMap.Entry, Float2BooleanMap.FastEntrySet, Float2BooleanMap.MapBuilder| Constructor and Description |
|---|
Float2BooleanRBTreeMap()
Default Constructor
|
Float2BooleanRBTreeMap(float[] keys,
boolean[] values)
Helper constructor that allow to create a map from unboxed values
|
Float2BooleanRBTreeMap(java.lang.Float[] keys,
java.lang.Boolean[] values)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Float2BooleanRBTreeMap(float[] keys,
boolean[] values,
FloatComparator comp)
Helper constructor that has a custom sorter and allow to create a map from unboxed values
|
Float2BooleanRBTreeMap(java.lang.Float[] keys,
java.lang.Boolean[] values,
FloatComparator comp)
Helper constructor that has a custom sorter and allow to create a map from boxed values (it will unbox them)
|
Float2BooleanRBTreeMap(Float2BooleanMap map)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Float2BooleanRBTreeMap(Float2BooleanMap 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.
|
Float2BooleanRBTreeMap(FloatComparator comp)
Constructor that allows to define the sorter
|
Float2BooleanRBTreeMap(java.util.Map<? extends java.lang.Float,? extends java.lang.Boolean> map)
A Helper constructor that allows to create a Map with exactly the same values as the provided map.
|
Float2BooleanRBTreeMap(java.util.Map<? extends java.lang.Float,? extends java.lang.Boolean> 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 |
|---|---|
Float2BooleanMap.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() |
boolean |
computeBoolean(float key,
FloatBooleanUnaryOperator mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
boolean |
computeBooleanIfAbsent(float key,
FloatPredicate mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
boolean |
computeBooleanIfPresent(float key,
FloatBooleanUnaryOperator mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
boolean |
containsKey(float key)
Type Specific method to reduce boxing/unboxing of values
|
Float2BooleanRBTreeMap |
copy()
A Function that does a shallow clone of the Map itself.
|
FloatNavigableSet |
descendingKeySet() |
Float2BooleanNavigableMap |
descendingMap() |
boolean |
firstBooleanValue()
A method to get the first Value of a Map.
|
Float2BooleanMap.Entry |
firstEntry() |
float |
firstFloatKey()
A method to get the first Key of a Map.
|
ObjectSet<Float2BooleanMap.Entry> |
float2BooleanEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
Float2BooleanMap.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(FloatBooleanConsumer action)
Type Specific forEach method to reduce boxing/unboxing
|
boolean |
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.
|
boolean |
getOrDefault(float key,
boolean defaultValue)
A Type Specific getOrDefault method to reduce boxing/unboxing
|
Float2BooleanNavigableMap |
headMap(float toKey,
boolean inclusive)
A Type Specific HeadMap method to reduce boxing/unboxing
|
Float2BooleanMap.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() |
boolean |
lastBooleanValue()
A method to get the last Value of a Map.
|
Float2BooleanMap.Entry |
lastEntry() |
float |
lastFloatKey()
A method to get the last Key of a Map.
|
Float2BooleanMap.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 |
mergeAllBoolean(Float2BooleanMap m,
BooleanBooleanUnaryOperator mappingFunction)
A Bulk method for merging Maps.
|
boolean |
mergeBoolean(float key,
boolean value,
BooleanBooleanUnaryOperator mappingFunction)
A Type Specific merge method to reduce boxing/unboxing
|
FloatNavigableSet |
navigableKeySet() |
Float2BooleanMap.Entry |
pollFirstEntry() |
float |
pollFirstFloatKey()
A method to get and remove the first Key of a Map.
|
Float2BooleanMap.Entry |
pollLastEntry() |
float |
pollLastFloatKey()
A method to get and remove the last Key of a Map.
|
boolean |
put(float key,
boolean value)
Type Specific method to reduce boxing/unboxing of values
|
boolean |
putIfAbsent(float key,
boolean value)
Type Specific method to reduce boxing/unboxing of values
|
boolean |
remove(float key)
Type Specific remove function to reduce boxing/unboxing
|
boolean |
remove(float key,
boolean value)
Type Specific remove function to reduce boxing/unboxing
|
boolean |
removeOrDefault(float key,
boolean defaultValue)
Type-Specific Remove function with a default return value if wanted.
|
boolean |
replace(float key,
boolean value)
A Type Specific replace method to reduce boxing/unboxing replace an existing value
|
boolean |
replace(float key,
boolean oldValue,
boolean 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() |
Float2BooleanNavigableMap |
subMap(float fromKey,
boolean fromInclusive,
float toKey,
boolean toInclusive)
A Type Specific SubMap method to reduce boxing/unboxing
|
boolean |
supplyBooleanIfAbsent(float key,
BooleanSupplier valueProvider)
A Supplier based computeIfAbsent function to fill the most used usecase of this function
|
Float2BooleanNavigableMap |
tailMap(float fromKey,
boolean inclusive)
A Type Specific TailMap method to reduce boxing/unboxing
|
BooleanCollection |
values() |
containsValue, entrySet, equals, get, getDefaultReturnValue, getOrDefault, hashCode, put, putAll, putAll, putAll, putAll, putAllIfAbsent, remove, replaceBooleans, replaceBooleans, setDefaultReturnValueceilingEntry, ceilingKey, floorEntry, floorKey, headMap, headMap, headMap, higherEntry, higherKey, lowerEntry, lowerKey, subMap, subMap, subMap, synchronize, synchronize, tailMap, tailMap, tailMap, unmodifiablefirstKey, lastKeybuilder, 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, replaceBooleans, replaceBooleans, setDefaultReturnValue, testalwaysFalse, alwaysTrue, andType, negate, orTypepublic Float2BooleanRBTreeMap()
public Float2BooleanRBTreeMap(FloatComparator comp)
comp - the function that decides how the tree is sorted, can be nullpublic Float2BooleanRBTreeMap(java.lang.Float[] keys,
java.lang.Boolean[] 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 Float2BooleanRBTreeMap(java.lang.Float[] keys,
java.lang.Boolean[] 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 Float2BooleanRBTreeMap(float[] keys,
boolean[] 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 Float2BooleanRBTreeMap(float[] keys,
boolean[] 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 Float2BooleanRBTreeMap(java.util.Map<? extends java.lang.Float,? extends java.lang.Boolean> map)
map - the values that should be present in the mappublic Float2BooleanRBTreeMap(java.util.Map<? extends java.lang.Float,? extends java.lang.Boolean> 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 Float2BooleanRBTreeMap(Float2BooleanMap map)
map - the values that should be present in the mappublic Float2BooleanRBTreeMap(Float2BooleanMap 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)
Float2BooleanNavigableMapsetDefaultMaxValue in interface Float2BooleanNavigableMapvalue - the new max valuepublic float getDefaultMaxValue()
Float2BooleanNavigableMapgetDefaultMaxValue in interface Float2BooleanNavigableMappublic void setDefaultMinValue(float value)
Float2BooleanNavigableMapsetDefaultMinValue in interface Float2BooleanNavigableMapvalue - the new min valuepublic float getDefaultMinValue()
Float2BooleanNavigableMapgetDefaultMinValue in interface Float2BooleanNavigableMappublic boolean put(float key,
boolean value)
Float2BooleanMapput in interface Float2BooleanMapkey - the key that should be inserted,value - the value that should be insertedMap.put(Object, Object)public boolean putIfAbsent(float key,
boolean value)
Float2BooleanMapputIfAbsent in interface Float2BooleanMapkey - the key that should be inserted,value - the value that should be insertedMap.putIfAbsent(Object, Object)public FloatComparator comparator()
comparator in interface java.util.SortedMap<java.lang.Float,java.lang.Boolean>comparator in interface Float2BooleanSortedMappublic boolean containsKey(float key)
Float2BooleanMapcontainsKey in interface Float2BooleanMapcontainsKey in class AbstractFloat2BooleanMapkey - element that is searched forpublic boolean get(float key)
Float2BooleanMapget in interface Float2BooleanMapkey - the key that is searched forpublic boolean getOrDefault(float key,
boolean defaultValue)
Float2BooleanMapgetOrDefault in interface Float2BooleanMapgetOrDefault in class AbstractFloat2BooleanMapkey - the key that is searched fordefaultValue - the value that should be returned if the key is not presentpublic float firstFloatKey()
Float2BooleanSortedMapfirstFloatKey in interface Float2BooleanSortedMappublic float pollFirstFloatKey()
Float2BooleanSortedMappollFirstFloatKey in interface Float2BooleanSortedMappublic float lastFloatKey()
Float2BooleanSortedMaplastFloatKey in interface Float2BooleanSortedMappublic float pollLastFloatKey()
Float2BooleanSortedMappollLastFloatKey in interface Float2BooleanSortedMappublic Float2BooleanMap.Entry firstEntry()
firstEntry in interface java.util.NavigableMap<java.lang.Float,java.lang.Boolean>firstEntry in interface Float2BooleanNavigableMappublic Float2BooleanMap.Entry lastEntry()
lastEntry in interface java.util.NavigableMap<java.lang.Float,java.lang.Boolean>lastEntry in interface Float2BooleanNavigableMappublic Float2BooleanMap.Entry pollFirstEntry()
pollFirstEntry in interface java.util.NavigableMap<java.lang.Float,java.lang.Boolean>pollFirstEntry in interface Float2BooleanNavigableMappublic Float2BooleanMap.Entry pollLastEntry()
pollLastEntry in interface java.util.NavigableMap<java.lang.Float,java.lang.Boolean>pollLastEntry in interface Float2BooleanNavigableMappublic boolean firstBooleanValue()
Float2BooleanSortedMapfirstBooleanValue in interface Float2BooleanSortedMappublic boolean lastBooleanValue()
Float2BooleanSortedMaplastBooleanValue in interface Float2BooleanSortedMappublic boolean remove(float key)
Float2BooleanMapremove in interface Float2BooleanMapkey - the element that should be removedpublic boolean removeOrDefault(float key,
boolean defaultValue)
Float2BooleanMapremoveOrDefault in interface Float2BooleanMapkey - 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,
boolean value)
Float2BooleanMapremove in interface Float2BooleanMapkey - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)public boolean replace(float key,
boolean oldValue,
boolean newValue)
Float2BooleanMapreplace in interface Float2BooleanMapreplace in class AbstractFloat2BooleanMapkey - the element that should be searched foroldValue - the expected value to be replacednewValue - the value to replace the oldValue with.public boolean replace(float key,
boolean value)
Float2BooleanMapreplace in interface Float2BooleanMapreplace in class AbstractFloat2BooleanMapkey - the element that should be searched forvalue - the value to replace with.public boolean computeBoolean(float key,
FloatBooleanUnaryOperator mappingFunction)
Float2BooleanMapcomputeBoolean in interface Float2BooleanMapcomputeBoolean in class AbstractFloat2BooleanMapkey - the key that should be computedmappingFunction - the operator that should generate the valuepublic boolean computeBooleanIfAbsent(float key,
FloatPredicate mappingFunction)
Float2BooleanMapcomputeBooleanIfAbsent in interface Float2BooleanMapcomputeBooleanIfAbsent in class AbstractFloat2BooleanMapkey - the key that should be computedmappingFunction - the operator that should generate the value if not presentpublic boolean supplyBooleanIfAbsent(float key,
BooleanSupplier valueProvider)
Float2BooleanMapsupplyBooleanIfAbsent in interface Float2BooleanMapsupplyBooleanIfAbsent in class AbstractFloat2BooleanMapkey - the key that should be computedvalueProvider - the value if not presentpublic boolean computeBooleanIfPresent(float key,
FloatBooleanUnaryOperator mappingFunction)
Float2BooleanMapcomputeBooleanIfPresent in interface Float2BooleanMapcomputeBooleanIfPresent in class AbstractFloat2BooleanMapkey - the key that should be computedmappingFunction - the operator that should generate the value if presentpublic boolean mergeBoolean(float key,
boolean value,
BooleanBooleanUnaryOperator mappingFunction)
Float2BooleanMapmergeBoolean in interface Float2BooleanMapmergeBoolean in class AbstractFloat2BooleanMapkey - the key that should be be searched forvalue - the value that should be merged withmappingFunction - the operator that should generate the new Valuepublic void mergeAllBoolean(Float2BooleanMap m, BooleanBooleanUnaryOperator mappingFunction)
Float2BooleanMapmergeAllBoolean in interface Float2BooleanMapmergeAllBoolean in class AbstractFloat2BooleanMapm - the entries that should be bulk addedmappingFunction - the operator that should generate the new Valuepublic void forEach(FloatBooleanConsumer action)
Float2BooleanMapforEach in interface Float2BooleanMapforEach in class AbstractFloat2BooleanMapaction - processor of the values that are iterator overpublic int size()
size in interface java.util.Map<java.lang.Float,java.lang.Boolean>size in class java.util.AbstractMap<java.lang.Float,java.lang.Boolean>public void clear()
clear in interface java.util.Map<java.lang.Float,java.lang.Boolean>clear in class java.util.AbstractMap<java.lang.Float,java.lang.Boolean>public Float2BooleanRBTreeMap copy()
Float2BooleanMapcopy in interface Float2BooleanMapcopy in interface Float2BooleanNavigableMapcopy in interface Float2BooleanSortedMapcopy in class AbstractFloat2BooleanMappublic FloatNavigableSet keySet()
keySet in interface java.util.Map<java.lang.Float,java.lang.Boolean>keySet in interface java.util.SortedMap<java.lang.Float,java.lang.Boolean>keySet in interface Float2BooleanMapkeySet in interface Float2BooleanNavigableMapkeySet in interface Float2BooleanSortedMapkeySet in class AbstractFloat2BooleanMappublic ObjectSet<Float2BooleanMap.Entry> float2BooleanEntrySet()
Float2BooleanMapfloat2BooleanEntrySet in interface Float2BooleanMappublic BooleanCollection values()
values in interface java.util.Map<java.lang.Float,java.lang.Boolean>values in interface java.util.SortedMap<java.lang.Float,java.lang.Boolean>values in interface Float2BooleanMapvalues in interface Float2BooleanSortedMapvalues in class AbstractFloat2BooleanMappublic FloatNavigableSet navigableKeySet()
navigableKeySet in interface java.util.NavigableMap<java.lang.Float,java.lang.Boolean>navigableKeySet in interface Float2BooleanNavigableMappublic Float2BooleanNavigableMap descendingMap()
descendingMap in interface java.util.NavigableMap<java.lang.Float,java.lang.Boolean>descendingMap in interface Float2BooleanNavigableMappublic FloatNavigableSet descendingKeySet()
descendingKeySet in interface java.util.NavigableMap<java.lang.Float,java.lang.Boolean>descendingKeySet in interface Float2BooleanNavigableMappublic Float2BooleanNavigableMap subMap(float fromKey, boolean fromInclusive, float toKey, boolean toInclusive)
Float2BooleanNavigableMapsubMap in interface Float2BooleanNavigableMapfromKey - where the submap should startfromInclusive - if the fromKey is inclusive or nottoKey - where the subMap should endtoInclusive - if the toKey is inclusive or notpublic Float2BooleanNavigableMap headMap(float toKey, boolean inclusive)
Float2BooleanNavigableMapheadMap in interface Float2BooleanNavigableMaptoKey - where the HeadMap should endinclusive - if the toKey is inclusive or notpublic Float2BooleanNavigableMap tailMap(float fromKey, boolean inclusive)
Float2BooleanNavigableMaptailMap in interface Float2BooleanNavigableMapfromKey - where the TailMap should startinclusive - if the fromKey is inclusive or notpublic float lowerKey(float e)
Float2BooleanNavigableMaplowerKey in interface Float2BooleanNavigableMape - that should be compared with.public float floorKey(float e)
Float2BooleanNavigableMapfloorKey in interface Float2BooleanNavigableMape - that should be compared with.public float higherKey(float e)
Float2BooleanNavigableMaphigherKey in interface Float2BooleanNavigableMape - that should be compared with.public float ceilingKey(float e)
Float2BooleanNavigableMapceilingKey in interface Float2BooleanNavigableMape - that should be compared with.public Float2BooleanMap.Entry lowerEntry(float key)
Float2BooleanNavigableMaplowerEntry in interface Float2BooleanNavigableMapkey - that should be compared with.public Float2BooleanMap.Entry higherEntry(float key)
Float2BooleanNavigableMaphigherEntry in interface Float2BooleanNavigableMapkey - that should be compared with.public Float2BooleanMap.Entry floorEntry(float key)
Float2BooleanNavigableMapfloorEntry in interface Float2BooleanNavigableMapkey - that should be compared with.public Float2BooleanMap.Entry ceilingEntry(float key)
Float2BooleanNavigableMapceilingEntry in interface Float2BooleanNavigableMapkey - that should be compared with.