public class Byte2BooleanLinkedOpenCustomHashMap extends Byte2BooleanOpenCustomHashMap implements Byte2BooleanSortedMap
AbstractByte2BooleanMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Byte2BooleanSortedMap.FastSortedSetByte2BooleanMap.Entry, Byte2BooleanMap.FastEntrySet| Constructor and Description |
|---|
Byte2BooleanLinkedOpenCustomHashMap(byte[] keys,
boolean[] values,
ByteStrategy strategy)
Helper constructor that allow to create a map from unboxed values
|
Byte2BooleanLinkedOpenCustomHashMap(java.lang.Byte[] keys,
java.lang.Boolean[] values,
ByteStrategy strategy)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Byte2BooleanLinkedOpenCustomHashMap(byte[] keys,
boolean[] values,
float loadFactor,
ByteStrategy strategy)
Helper constructor that allow to create a map from unboxed values
|
Byte2BooleanLinkedOpenCustomHashMap(java.lang.Byte[] keys,
java.lang.Boolean[] values,
float loadFactor,
ByteStrategy strategy)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Byte2BooleanLinkedOpenCustomHashMap(Byte2BooleanMap map,
ByteStrategy strategy)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Byte2BooleanLinkedOpenCustomHashMap(Byte2BooleanMap map,
float loadFactor,
ByteStrategy strategy)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Byte2BooleanLinkedOpenCustomHashMap(ByteStrategy strategy)
Default Constructor
|
Byte2BooleanLinkedOpenCustomHashMap(int minCapacity,
ByteStrategy strategy)
Constructor that defines the minimum capacity
|
Byte2BooleanLinkedOpenCustomHashMap(int minCapacity,
float loadFactor,
ByteStrategy strategy)
Constructor that defines the minimum capacity and load factor
|
Byte2BooleanLinkedOpenCustomHashMap(java.util.Map<? extends java.lang.Byte,? extends java.lang.Boolean> map,
ByteStrategy strategy)
A Helper constructor that allows to create a Map with exactly the same values as the provided map.
|
Byte2BooleanLinkedOpenCustomHashMap(java.util.Map<? extends java.lang.Byte,? extends java.lang.Boolean> map,
float loadFactor,
ByteStrategy strategy)
A Helper constructor that 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.
|
void |
clear() |
ByteComparator |
comparator() |
boolean |
firstBooleanValue()
A method to get the first Value of a Map.
|
byte |
firstByteKey()
A method to get the first Key of a Map.
|
void |
forEach(ByteBooleanConsumer action)
Type Specific forEach method to reduce boxing/unboxing
|
boolean |
getAndMoveToFirst(byte key)
A Specific get method that allows to move teh given key/value int the first index.
|
boolean |
getAndMoveToLast(byte key)
A Specific get method that allows to move teh given key/value int the last index.
|
Byte2BooleanSortedMap |
headMap(byte toKey)
A Type Specific HeadMap method to reduce boxing/unboxing
|
ByteSet |
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.
|
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.
|
byte |
pollFirstByteKey()
A method to get and remove the first Key of a Map.
|
byte |
pollLastByteKey()
A method to get and remove the last Key of a Map.
|
boolean |
putAndMoveToFirst(byte key,
boolean value)
A customized put method that allows you to insert into the first index.
|
boolean |
putAndMoveToLast(byte key,
boolean value)
A customized put method that allows you to insert into the last index.
|
Byte2BooleanSortedMap |
subMap(byte fromKey,
byte toKey)
A Type Specific SubMap method to reduce boxing/unboxing
|
Byte2BooleanSortedMap |
tailMap(byte fromKey)
A Type Specific TailMap method to reduce boxing/unboxing
|
BooleanCollection |
values() |
computeBoolean, computeBooleanIfAbsent, computeBooleanIfPresent, containsKey, containsKey, containsValue, containsValue, get, getBoolean, getOrDefault, mergeAllBoolean, mergeBoolean, put, putIfAbsent, remByte, remByteOrDefault, remove, remove, remove, replace, replace, sizeentrySet, equals, getDefaultReturnValue, getOrDefault, hashCode, putAll, putAll, putAll, putAllIfAbsent, replaceBooleans, replaceBooleans, setDefaultReturnValuefirstKey, headMap, lastKey, subMap, tailMapcompute, computeBoolean, computeBooleanIfAbsent, computeBooleanIfPresent, computeIfAbsent, computeIfPresent, containsKey, containsKey, containsValue, containsValue, entrySet, forEach, get, getBoolean, getDefaultReturnValue, getOrDefault, getOrDefault, merge, mergeAllBoolean, mergeBoolean, put, put, putAll, putAll, putAll, putAllIfAbsent, putIfAbsent, putIfAbsent, remByte, remByteOrDefault, remove, remove, remove, replace, replace, replace, replace, replaceAll, replaceBooleans, replaceBooleans, setDefaultReturnValuepublic Byte2BooleanLinkedOpenCustomHashMap(ByteStrategy strategy)
strategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nullpublic Byte2BooleanLinkedOpenCustomHashMap(int minCapacity,
ByteStrategy strategy)
minCapacity - the minimum capacity the HashMap is allowed to be.strategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nulljava.lang.IllegalStateException - if the minimum capacity is negativepublic Byte2BooleanLinkedOpenCustomHashMap(int minCapacity,
float loadFactor,
ByteStrategy strategy)
minCapacity - the minimum capacity the HashMap is allowed to be.loadFactor - the percentage of how full the backing array can be before they resizestrategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nulljava.lang.IllegalStateException - if the minimum capacity is negativejava.lang.IllegalStateException - if the loadfactor is either below/equal to 0 or above/equal to 1public Byte2BooleanLinkedOpenCustomHashMap(java.lang.Byte[] keys,
java.lang.Boolean[] values,
ByteStrategy strategy)
keys - the keys that should be put into the mapvalues - the values that should be put into the map.strategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nulljava.lang.IllegalStateException - if the keys and values do not match in lenghtpublic Byte2BooleanLinkedOpenCustomHashMap(java.lang.Byte[] keys,
java.lang.Boolean[] values,
float loadFactor,
ByteStrategy strategy)
keys - the keys that should be put into the mapvalues - the values that should be put into the map.loadFactor - the percentage of how full the backing array can be before they resizestrategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nulljava.lang.IllegalStateException - if the keys and values do not match in lenghtjava.lang.IllegalStateException - if the loadfactor is either below/equal to 0 or above/equal to 1public Byte2BooleanLinkedOpenCustomHashMap(byte[] keys,
boolean[] values,
ByteStrategy strategy)
keys - the keys that should be put into the mapvalues - the values that should be put into the map.strategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nulljava.lang.IllegalStateException - if the keys and values do not match in lenghtpublic Byte2BooleanLinkedOpenCustomHashMap(byte[] keys,
boolean[] values,
float loadFactor,
ByteStrategy strategy)
keys - the keys that should be put into the mapvalues - the values that should be put into the map.loadFactor - the percentage of how full the backing array can be before they resizestrategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nulljava.lang.IllegalStateException - if the keys and values do not match in lenghtjava.lang.IllegalStateException - if the loadfactor is either below/equal to 0 or above/equal to 1public Byte2BooleanLinkedOpenCustomHashMap(java.util.Map<? extends java.lang.Byte,? extends java.lang.Boolean> map,
ByteStrategy strategy)
map - the values that should be present in the mapstrategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nullpublic Byte2BooleanLinkedOpenCustomHashMap(java.util.Map<? extends java.lang.Byte,? extends java.lang.Boolean> map,
float loadFactor,
ByteStrategy strategy)
map - the values that should be present in the maploadFactor - the percentage of how full the backing array can be before they resizestrategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nulljava.lang.IllegalStateException - if the loadfactor is either below/equal to 0 or above/equal to 1public Byte2BooleanLinkedOpenCustomHashMap(Byte2BooleanMap map, ByteStrategy strategy)
map - the values that should be present in the mapstrategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nullpublic Byte2BooleanLinkedOpenCustomHashMap(Byte2BooleanMap map, float loadFactor, ByteStrategy strategy)
map - the values that should be present in the maploadFactor - the percentage of how full the backing array can be before they resizestrategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nulljava.lang.IllegalStateException - if the loadfactor is either below/equal to 0 or above/equal to 1public boolean putAndMoveToFirst(byte key,
boolean value)
Byte2BooleanSortedMapputAndMoveToFirst in interface Byte2BooleanSortedMapkey - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public boolean putAndMoveToLast(byte key,
boolean value)
Byte2BooleanSortedMapputAndMoveToLast in interface Byte2BooleanSortedMapkey - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public boolean moveToFirst(byte key)
Byte2BooleanSortedMapmoveToFirst in interface Byte2BooleanSortedMapkey - that should be moved to the first indexpublic boolean moveToLast(byte key)
Byte2BooleanSortedMapmoveToLast in interface Byte2BooleanSortedMapkey - that should be moved to the first lastpublic boolean getAndMoveToFirst(byte key)
Byte2BooleanSortedMapgetAndMoveToFirst in interface Byte2BooleanSortedMapkey - that is searched forpublic boolean getAndMoveToLast(byte key)
Byte2BooleanSortedMapgetAndMoveToLast in interface Byte2BooleanSortedMapkey - that is searched forpublic ByteComparator comparator()
comparator in interface java.util.SortedMap<java.lang.Byte,java.lang.Boolean>comparator in interface Byte2BooleanSortedMappublic Byte2BooleanSortedMap subMap(byte fromKey, byte toKey)
Byte2BooleanSortedMapsubMap in interface Byte2BooleanSortedMapfromKey - where the submap should starttoKey - where the subMap should endpublic Byte2BooleanSortedMap headMap(byte toKey)
Byte2BooleanSortedMapheadMap in interface Byte2BooleanSortedMaptoKey - where the headMap should endpublic Byte2BooleanSortedMap tailMap(byte fromKey)
Byte2BooleanSortedMaptailMap in interface Byte2BooleanSortedMapfromKey - where the TailMap should startpublic byte firstByteKey()
Byte2BooleanSortedMapfirstByteKey in interface Byte2BooleanSortedMappublic byte pollFirstByteKey()
Byte2BooleanSortedMappollFirstByteKey in interface Byte2BooleanSortedMappublic byte lastByteKey()
Byte2BooleanSortedMaplastByteKey in interface Byte2BooleanSortedMappublic byte pollLastByteKey()
Byte2BooleanSortedMappollLastByteKey in interface Byte2BooleanSortedMappublic boolean firstBooleanValue()
Byte2BooleanSortedMapfirstBooleanValue in interface Byte2BooleanSortedMappublic boolean lastBooleanValue()
Byte2BooleanSortedMaplastBooleanValue in interface Byte2BooleanSortedMappublic ObjectSet<Byte2BooleanMap.Entry> byte2BooleanEntrySet()
Byte2BooleanMapbyte2BooleanEntrySet in interface Byte2BooleanMapbyte2BooleanEntrySet in class Byte2BooleanOpenCustomHashMappublic ByteSet 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 Byte2BooleanSortedMapkeySet in class Byte2BooleanOpenCustomHashMappublic 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 Byte2BooleanOpenCustomHashMappublic void forEach(ByteBooleanConsumer action)
Byte2BooleanMapforEach in interface Byte2BooleanMapforEach in class Byte2BooleanOpenCustomHashMapaction - processor of the values that are iterator overpublic void clear()
clear in interface java.util.Map<java.lang.Byte,java.lang.Boolean>clear in class Byte2BooleanOpenCustomHashMap