public class Byte2BooleanAVLTreeMap extends AbstractByte2BooleanMap implements Byte2BooleanNavigableMap
AbstractByte2BooleanMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Byte2BooleanSortedMap.FastSortedSetByte2BooleanMap.BuilderCache, Byte2BooleanMap.Entry, Byte2BooleanMap.FastEntrySet, Byte2BooleanMap.MapBuilder| Constructor and Description |
|---|
Byte2BooleanAVLTreeMap()
Default Constructor
|
Byte2BooleanAVLTreeMap(byte[] keys,
boolean[] values)
Helper constructor that allow to create a map from unboxed values
|
Byte2BooleanAVLTreeMap(java.lang.Byte[] keys,
java.lang.Boolean[] values)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Byte2BooleanAVLTreeMap(byte[] keys,
boolean[] values,
ByteComparator comp)
Helper constructor that has a custom sorter and allow to create a map from unboxed values
|
Byte2BooleanAVLTreeMap(java.lang.Byte[] keys,
java.lang.Boolean[] values,
ByteComparator comp)
Helper constructor that has a custom sorter and allow to create a map from boxed values (it will unbox them)
|
Byte2BooleanAVLTreeMap(Byte2BooleanMap map)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Byte2BooleanAVLTreeMap(Byte2BooleanMap 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.
|
Byte2BooleanAVLTreeMap(ByteComparator comp)
Constructor that allows to define the sorter
|
Byte2BooleanAVLTreeMap(java.util.Map<? extends java.lang.Byte,? extends java.lang.Boolean> map)
A Helper constructor that allows to create a Map with exactly the same values as the provided map.
|
Byte2BooleanAVLTreeMap(java.util.Map<? extends java.lang.Byte,? extends java.lang.Boolean> 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 |
|---|---|
ObjectSet<Byte2BooleanMap.Entry> |
byte2BooleanEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
Byte2BooleanMap.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() |
boolean |
computeBoolean(byte key,
ByteBooleanUnaryOperator mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
boolean |
computeBooleanIfAbsent(byte key,
BytePredicate mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
boolean |
computeBooleanIfPresent(byte key,
ByteBooleanUnaryOperator mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
boolean |
containsKey(byte key)
Type Specific method to reduce boxing/unboxing of values
|
Byte2BooleanAVLTreeMap |
copy()
A Function that does a shallow clone of the Map itself.
|
ByteNavigableSet |
descendingKeySet() |
Byte2BooleanNavigableMap |
descendingMap() |
boolean |
firstBooleanValue()
A method to get the first Value of a Map.
|
byte |
firstByteKey()
A method to get the first Key of a Map.
|
Byte2BooleanMap.Entry |
firstEntry() |
Byte2BooleanMap.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.
|
void |
forEach(ByteBooleanConsumer action)
Type Specific forEach method to reduce boxing/unboxing
|
boolean |
get(byte key)
A Type Specific get method to reduce boxing/unboxing
|
byte |
getDefaultMaxValue()
A Helper method to get the max value for SubMaps.
|
byte |
getDefaultMinValue()
A Helper method to get the min value for SubMaps.
|
boolean |
getOrDefault(byte key,
boolean defaultValue)
A Type Specific getOrDefault method to reduce boxing/unboxing
|
Byte2BooleanNavigableMap |
headMap(byte toKey,
boolean inclusive)
A Type Specific HeadMap method to reduce boxing/unboxing
|
Byte2BooleanMap.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.
|
ByteNavigableSet |
keySet() |
boolean |
lastBooleanValue()
A method to get the last Value of a Map.
|
byte |
lastByteKey()
A method to get the last Key of a Map.
|
Byte2BooleanMap.Entry |
lastEntry() |
Byte2BooleanMap.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 |
mergeAllBoolean(Byte2BooleanMap m,
BooleanBooleanUnaryOperator mappingFunction)
A Bulk method for merging Maps.
|
boolean |
mergeBoolean(byte key,
boolean value,
BooleanBooleanUnaryOperator mappingFunction)
A Type Specific merge method to reduce boxing/unboxing
|
ByteNavigableSet |
navigableKeySet() |
byte |
pollFirstByteKey()
A method to get and remove the first Key of a Map.
|
Byte2BooleanMap.Entry |
pollFirstEntry() |
byte |
pollLastByteKey()
A method to get and remove the last Key of a Map.
|
Byte2BooleanMap.Entry |
pollLastEntry() |
boolean |
put(byte key,
boolean value)
Type Specific method to reduce boxing/unboxing of values
|
boolean |
putIfAbsent(byte key,
boolean value)
Type Specific method to reduce boxing/unboxing of values
|
boolean |
remove(byte key)
Type Specific remove function to reduce boxing/unboxing
|
boolean |
remove(byte key,
boolean value)
Type Specific remove function to reduce boxing/unboxing
|
boolean |
removeOrDefault(byte key,
boolean defaultValue)
Type-Specific Remove function with a default return value if wanted.
|
boolean |
replace(byte key,
boolean value)
A Type Specific replace method to reduce boxing/unboxing replace an existing value
|
boolean |
replace(byte key,
boolean oldValue,
boolean 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() |
Byte2BooleanNavigableMap |
subMap(byte fromKey,
boolean fromInclusive,
byte toKey,
boolean toInclusive)
A Type Specific SubMap method to reduce boxing/unboxing
|
boolean |
supplyBooleanIfAbsent(byte key,
BooleanSupplier valueProvider)
A Supplier based computeIfAbsent function to fill the most used usecase of this function
|
Byte2BooleanNavigableMap |
tailMap(byte 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 Byte2BooleanAVLTreeMap()
public Byte2BooleanAVLTreeMap(ByteComparator comp)
comp - the function that decides how the tree is sorted, can be nullpublic Byte2BooleanAVLTreeMap(java.lang.Byte[] 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 Byte2BooleanAVLTreeMap(java.lang.Byte[] keys,
java.lang.Boolean[] 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 Byte2BooleanAVLTreeMap(byte[] 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 Byte2BooleanAVLTreeMap(byte[] keys,
boolean[] 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 Byte2BooleanAVLTreeMap(java.util.Map<? extends java.lang.Byte,? extends java.lang.Boolean> map)
map - the values that should be present in the mappublic Byte2BooleanAVLTreeMap(java.util.Map<? extends java.lang.Byte,? extends java.lang.Boolean> 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 Byte2BooleanAVLTreeMap(Byte2BooleanMap map)
map - the values that should be present in the mappublic Byte2BooleanAVLTreeMap(Byte2BooleanMap 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)
Byte2BooleanNavigableMapsetDefaultMaxValue in interface Byte2BooleanNavigableMapvalue - the new max valuepublic byte getDefaultMaxValue()
Byte2BooleanNavigableMapgetDefaultMaxValue in interface Byte2BooleanNavigableMappublic void setDefaultMinValue(byte value)
Byte2BooleanNavigableMapsetDefaultMinValue in interface Byte2BooleanNavigableMapvalue - the new min valuepublic byte getDefaultMinValue()
Byte2BooleanNavigableMapgetDefaultMinValue in interface Byte2BooleanNavigableMappublic boolean put(byte key,
boolean value)
Byte2BooleanMapput in interface Byte2BooleanMapkey - the key that should be inserted,value - the value that should be insertedMap.put(Object, Object)public boolean putIfAbsent(byte key,
boolean value)
Byte2BooleanMapputIfAbsent in interface Byte2BooleanMapkey - the key that should be inserted,value - the value that should be insertedMap.putIfAbsent(Object, Object)public ByteComparator comparator()
comparator in interface java.util.SortedMap<java.lang.Byte,java.lang.Boolean>comparator in interface Byte2BooleanSortedMappublic boolean containsKey(byte key)
Byte2BooleanMapcontainsKey in interface Byte2BooleanMapcontainsKey in class AbstractByte2BooleanMapkey - element that is searched forpublic boolean get(byte key)
Byte2BooleanMapget in interface Byte2BooleanMapkey - the key that is searched forpublic boolean getOrDefault(byte key,
boolean defaultValue)
Byte2BooleanMapgetOrDefault in interface Byte2BooleanMapgetOrDefault in class AbstractByte2BooleanMapkey - the key that is searched fordefaultValue - the value that should be returned if the key is not presentpublic byte firstByteKey()
Byte2BooleanSortedMapfirstByteKey in interface Byte2BooleanSortedMappublic byte pollFirstByteKey()
Byte2BooleanSortedMappollFirstByteKey in interface Byte2BooleanSortedMappublic byte lastByteKey()
Byte2BooleanSortedMaplastByteKey in interface Byte2BooleanSortedMappublic byte pollLastByteKey()
Byte2BooleanSortedMappollLastByteKey in interface Byte2BooleanSortedMappublic Byte2BooleanMap.Entry firstEntry()
firstEntry in interface java.util.NavigableMap<java.lang.Byte,java.lang.Boolean>firstEntry in interface Byte2BooleanNavigableMappublic Byte2BooleanMap.Entry lastEntry()
lastEntry in interface java.util.NavigableMap<java.lang.Byte,java.lang.Boolean>lastEntry in interface Byte2BooleanNavigableMappublic Byte2BooleanMap.Entry pollFirstEntry()
pollFirstEntry in interface java.util.NavigableMap<java.lang.Byte,java.lang.Boolean>pollFirstEntry in interface Byte2BooleanNavigableMappublic Byte2BooleanMap.Entry pollLastEntry()
pollLastEntry in interface java.util.NavigableMap<java.lang.Byte,java.lang.Boolean>pollLastEntry in interface Byte2BooleanNavigableMappublic boolean firstBooleanValue()
Byte2BooleanSortedMapfirstBooleanValue in interface Byte2BooleanSortedMappublic boolean lastBooleanValue()
Byte2BooleanSortedMaplastBooleanValue in interface Byte2BooleanSortedMappublic boolean remove(byte key)
Byte2BooleanMapremove in interface Byte2BooleanMapkey - the element that should be removedpublic boolean removeOrDefault(byte key,
boolean defaultValue)
Byte2BooleanMapremoveOrDefault in interface Byte2BooleanMapkey - 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,
boolean value)
Byte2BooleanMapremove in interface Byte2BooleanMapkey - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)public boolean replace(byte key,
boolean oldValue,
boolean newValue)
Byte2BooleanMapreplace in interface Byte2BooleanMapreplace in class AbstractByte2BooleanMapkey - the element that should be searched foroldValue - the expected value to be replacednewValue - the value to replace the oldValue with.public boolean replace(byte key,
boolean value)
Byte2BooleanMapreplace in interface Byte2BooleanMapreplace in class AbstractByte2BooleanMapkey - the element that should be searched forvalue - the value to replace with.public boolean computeBoolean(byte key,
ByteBooleanUnaryOperator mappingFunction)
Byte2BooleanMapcomputeBoolean in interface Byte2BooleanMapcomputeBoolean in class AbstractByte2BooleanMapkey - the key that should be computedmappingFunction - the operator that should generate the valuepublic boolean computeBooleanIfAbsent(byte key,
BytePredicate mappingFunction)
Byte2BooleanMapcomputeBooleanIfAbsent in interface Byte2BooleanMapcomputeBooleanIfAbsent in class AbstractByte2BooleanMapkey - the key that should be computedmappingFunction - the operator that should generate the value if not presentpublic boolean supplyBooleanIfAbsent(byte key,
BooleanSupplier valueProvider)
Byte2BooleanMapsupplyBooleanIfAbsent in interface Byte2BooleanMapsupplyBooleanIfAbsent in class AbstractByte2BooleanMapkey - the key that should be computedvalueProvider - the value if not presentpublic boolean computeBooleanIfPresent(byte key,
ByteBooleanUnaryOperator mappingFunction)
Byte2BooleanMapcomputeBooleanIfPresent in interface Byte2BooleanMapcomputeBooleanIfPresent in class AbstractByte2BooleanMapkey - the key that should be computedmappingFunction - the operator that should generate the value if presentpublic boolean mergeBoolean(byte key,
boolean value,
BooleanBooleanUnaryOperator mappingFunction)
Byte2BooleanMapmergeBoolean in interface Byte2BooleanMapmergeBoolean in class AbstractByte2BooleanMapkey - 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(Byte2BooleanMap m, BooleanBooleanUnaryOperator mappingFunction)
Byte2BooleanMapmergeAllBoolean in interface Byte2BooleanMapmergeAllBoolean in class AbstractByte2BooleanMapm - the entries that should be bulk addedmappingFunction - the operator that should generate the new Valuepublic void forEach(ByteBooleanConsumer action)
Byte2BooleanMapforEach in interface Byte2BooleanMapforEach in class AbstractByte2BooleanMapaction - processor of the values that are iterator overpublic int size()
size in interface java.util.Map<java.lang.Byte,java.lang.Boolean>size in class java.util.AbstractMap<java.lang.Byte,java.lang.Boolean>public void clear()
clear in interface java.util.Map<java.lang.Byte,java.lang.Boolean>clear in class java.util.AbstractMap<java.lang.Byte,java.lang.Boolean>public Byte2BooleanAVLTreeMap copy()
Byte2BooleanMapcopy in interface Byte2BooleanMapcopy in interface Byte2BooleanNavigableMapcopy in interface Byte2BooleanSortedMapcopy in class AbstractByte2BooleanMappublic ByteNavigableSet keySet()
keySet in interface java.util.Map<java.lang.Byte,java.lang.Boolean>keySet in interface java.util.SortedMap<java.lang.Byte,java.lang.Boolean>keySet in interface Byte2BooleanMapkeySet in interface Byte2BooleanNavigableMapkeySet in interface Byte2BooleanSortedMapkeySet in class AbstractByte2BooleanMappublic ObjectSet<Byte2BooleanMap.Entry> byte2BooleanEntrySet()
Byte2BooleanMapbyte2BooleanEntrySet in interface Byte2BooleanMappublic BooleanCollection values()
values in interface java.util.Map<java.lang.Byte,java.lang.Boolean>values in interface java.util.SortedMap<java.lang.Byte,java.lang.Boolean>values in interface Byte2BooleanMapvalues in interface Byte2BooleanSortedMapvalues in class AbstractByte2BooleanMappublic ByteNavigableSet navigableKeySet()
navigableKeySet in interface java.util.NavigableMap<java.lang.Byte,java.lang.Boolean>navigableKeySet in interface Byte2BooleanNavigableMappublic Byte2BooleanNavigableMap descendingMap()
descendingMap in interface java.util.NavigableMap<java.lang.Byte,java.lang.Boolean>descendingMap in interface Byte2BooleanNavigableMappublic ByteNavigableSet descendingKeySet()
descendingKeySet in interface java.util.NavigableMap<java.lang.Byte,java.lang.Boolean>descendingKeySet in interface Byte2BooleanNavigableMappublic Byte2BooleanNavigableMap subMap(byte fromKey, boolean fromInclusive, byte toKey, boolean toInclusive)
Byte2BooleanNavigableMapsubMap in interface Byte2BooleanNavigableMapfromKey - where the submap should startfromInclusive - if the fromKey is inclusive or nottoKey - where the subMap should endtoInclusive - if the toKey is inclusive or notpublic Byte2BooleanNavigableMap headMap(byte toKey, boolean inclusive)
Byte2BooleanNavigableMapheadMap in interface Byte2BooleanNavigableMaptoKey - where the HeadMap should endinclusive - if the toKey is inclusive or notpublic Byte2BooleanNavigableMap tailMap(byte fromKey, boolean inclusive)
Byte2BooleanNavigableMaptailMap in interface Byte2BooleanNavigableMapfromKey - where the TailMap should startinclusive - if the fromKey is inclusive or notpublic byte lowerKey(byte e)
Byte2BooleanNavigableMaplowerKey in interface Byte2BooleanNavigableMape - that should be compared with.public byte floorKey(byte e)
Byte2BooleanNavigableMapfloorKey in interface Byte2BooleanNavigableMape - that should be compared with.public byte higherKey(byte e)
Byte2BooleanNavigableMaphigherKey in interface Byte2BooleanNavigableMape - that should be compared with.public byte ceilingKey(byte e)
Byte2BooleanNavigableMapceilingKey in interface Byte2BooleanNavigableMape - that should be compared with.public Byte2BooleanMap.Entry lowerEntry(byte key)
Byte2BooleanNavigableMaplowerEntry in interface Byte2BooleanNavigableMapkey - that should be compared with.public Byte2BooleanMap.Entry higherEntry(byte key)
Byte2BooleanNavigableMaphigherEntry in interface Byte2BooleanNavigableMapkey - that should be compared with.public Byte2BooleanMap.Entry floorEntry(byte key)
Byte2BooleanNavigableMapfloorEntry in interface Byte2BooleanNavigableMapkey - that should be compared with.public Byte2BooleanMap.Entry ceilingEntry(byte key)
Byte2BooleanNavigableMapceilingEntry in interface Byte2BooleanNavigableMapkey - that should be compared with.