public class Long2BooleanLinkedOpenCustomHashMap extends Long2BooleanOpenCustomHashMap implements Long2BooleanSortedMap
AbstractLong2BooleanMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Long2BooleanSortedMap.FastSortedSetLong2BooleanMap.Entry, Long2BooleanMap.FastEntrySet| Constructor and Description |
|---|
Long2BooleanLinkedOpenCustomHashMap(int minCapacity,
float loadFactor,
LongStrategy strategy)
Constructor that defines the minimum capacity and load factor
|
Long2BooleanLinkedOpenCustomHashMap(int minCapacity,
LongStrategy strategy)
Constructor that defines the minimum capacity
|
Long2BooleanLinkedOpenCustomHashMap(long[] keys,
boolean[] values,
float loadFactor,
LongStrategy strategy)
Helper constructor that allow to create a map from unboxed values
|
Long2BooleanLinkedOpenCustomHashMap(java.lang.Long[] keys,
java.lang.Boolean[] values,
float loadFactor,
LongStrategy strategy)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Long2BooleanLinkedOpenCustomHashMap(long[] keys,
boolean[] values,
LongStrategy strategy)
Helper constructor that allow to create a map from unboxed values
|
Long2BooleanLinkedOpenCustomHashMap(java.lang.Long[] keys,
java.lang.Boolean[] values,
LongStrategy strategy)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Long2BooleanLinkedOpenCustomHashMap(Long2BooleanMap map,
float loadFactor,
LongStrategy strategy)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Long2BooleanLinkedOpenCustomHashMap(Long2BooleanMap map,
LongStrategy strategy)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Long2BooleanLinkedOpenCustomHashMap(LongStrategy strategy)
Default Constructor
|
Long2BooleanLinkedOpenCustomHashMap(java.util.Map<? extends java.lang.Long,? extends java.lang.Boolean> map,
float loadFactor,
LongStrategy strategy)
A Helper constructor that allows to create a Map with exactly the same values as the provided map.
|
Long2BooleanLinkedOpenCustomHashMap(java.util.Map<? extends java.lang.Long,? extends java.lang.Boolean> map,
LongStrategy 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 |
|---|---|
void |
clear() |
LongComparator |
comparator() |
boolean |
firstBooleanValue()
A method to get the first Value of a Map.
|
long |
firstLongKey()
A method to get the first Key of a Map.
|
void |
forEach(LongBooleanConsumer action)
Type Specific forEach method to reduce boxing/unboxing
|
boolean |
getAndMoveToFirst(long key)
A Specific get method that allows to move teh given key/value int the first index.
|
boolean |
getAndMoveToLast(long key)
A Specific get method that allows to move teh given key/value int the last index.
|
Long2BooleanSortedMap |
headMap(long toKey)
A Type Specific HeadMap method to reduce boxing/unboxing
|
LongSet |
keySet() |
boolean |
lastBooleanValue()
A method to get the last Value of a Map.
|
long |
lastLongKey()
A method to get the last Key of a Map.
|
ObjectSet<Long2BooleanMap.Entry> |
long2BooleanEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
boolean |
moveToFirst(long key)
A specific move method to move a given key/value to the first index.
|
boolean |
moveToLast(long key)
A specific move method to move a given key/value to the last index.
|
long |
pollFirstLongKey()
A method to get and remove the first Key of a Map.
|
long |
pollLastLongKey()
A method to get and remove the last Key of a Map.
|
boolean |
putAndMoveToFirst(long key,
boolean value)
A customized put method that allows you to insert into the first index.
|
boolean |
putAndMoveToLast(long key,
boolean value)
A customized put method that allows you to insert into the last index.
|
Long2BooleanSortedMap |
subMap(long fromKey,
long toKey)
A Type Specific SubMap method to reduce boxing/unboxing
|
Long2BooleanSortedMap |
tailMap(long 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, remLong, remLongOrDefault, 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, remLong, remLongOrDefault, remove, remove, remove, replace, replace, replace, replace, replaceAll, replaceBooleans, replaceBooleans, setDefaultReturnValuepublic Long2BooleanLinkedOpenCustomHashMap(LongStrategy strategy)
strategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nullpublic Long2BooleanLinkedOpenCustomHashMap(int minCapacity,
LongStrategy 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 Long2BooleanLinkedOpenCustomHashMap(int minCapacity,
float loadFactor,
LongStrategy 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 Long2BooleanLinkedOpenCustomHashMap(java.lang.Long[] keys,
java.lang.Boolean[] values,
LongStrategy 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 Long2BooleanLinkedOpenCustomHashMap(java.lang.Long[] keys,
java.lang.Boolean[] values,
float loadFactor,
LongStrategy 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 Long2BooleanLinkedOpenCustomHashMap(long[] keys,
boolean[] values,
LongStrategy 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 Long2BooleanLinkedOpenCustomHashMap(long[] keys,
boolean[] values,
float loadFactor,
LongStrategy 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 Long2BooleanLinkedOpenCustomHashMap(java.util.Map<? extends java.lang.Long,? extends java.lang.Boolean> map,
LongStrategy strategy)
map - the values that should be present in the mapstrategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nullpublic Long2BooleanLinkedOpenCustomHashMap(java.util.Map<? extends java.lang.Long,? extends java.lang.Boolean> map,
float loadFactor,
LongStrategy 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 Long2BooleanLinkedOpenCustomHashMap(Long2BooleanMap map, LongStrategy strategy)
map - the values that should be present in the mapstrategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nullpublic Long2BooleanLinkedOpenCustomHashMap(Long2BooleanMap map, float loadFactor, LongStrategy 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(long key,
boolean value)
Long2BooleanSortedMapputAndMoveToFirst in interface Long2BooleanSortedMapkey - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public boolean putAndMoveToLast(long key,
boolean value)
Long2BooleanSortedMapputAndMoveToLast in interface Long2BooleanSortedMapkey - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public boolean moveToFirst(long key)
Long2BooleanSortedMapmoveToFirst in interface Long2BooleanSortedMapkey - that should be moved to the first indexpublic boolean moveToLast(long key)
Long2BooleanSortedMapmoveToLast in interface Long2BooleanSortedMapkey - that should be moved to the first lastpublic boolean getAndMoveToFirst(long key)
Long2BooleanSortedMapgetAndMoveToFirst in interface Long2BooleanSortedMapkey - that is searched forpublic boolean getAndMoveToLast(long key)
Long2BooleanSortedMapgetAndMoveToLast in interface Long2BooleanSortedMapkey - that is searched forpublic LongComparator comparator()
comparator in interface java.util.SortedMap<java.lang.Long,java.lang.Boolean>comparator in interface Long2BooleanSortedMappublic Long2BooleanSortedMap subMap(long fromKey, long toKey)
Long2BooleanSortedMapsubMap in interface Long2BooleanSortedMapfromKey - where the submap should starttoKey - where the subMap should endpublic Long2BooleanSortedMap headMap(long toKey)
Long2BooleanSortedMapheadMap in interface Long2BooleanSortedMaptoKey - where the headMap should endpublic Long2BooleanSortedMap tailMap(long fromKey)
Long2BooleanSortedMaptailMap in interface Long2BooleanSortedMapfromKey - where the TailMap should startpublic long firstLongKey()
Long2BooleanSortedMapfirstLongKey in interface Long2BooleanSortedMappublic long pollFirstLongKey()
Long2BooleanSortedMappollFirstLongKey in interface Long2BooleanSortedMappublic long lastLongKey()
Long2BooleanSortedMaplastLongKey in interface Long2BooleanSortedMappublic long pollLastLongKey()
Long2BooleanSortedMappollLastLongKey in interface Long2BooleanSortedMappublic boolean firstBooleanValue()
Long2BooleanSortedMapfirstBooleanValue in interface Long2BooleanSortedMappublic boolean lastBooleanValue()
Long2BooleanSortedMaplastBooleanValue in interface Long2BooleanSortedMappublic ObjectSet<Long2BooleanMap.Entry> long2BooleanEntrySet()
Long2BooleanMaplong2BooleanEntrySet in interface Long2BooleanMaplong2BooleanEntrySet in class Long2BooleanOpenCustomHashMappublic LongSet keySet()
keySet in interface java.util.Map<java.lang.Long,java.lang.Boolean>keySet in interface java.util.SortedMap<java.lang.Long,java.lang.Boolean>keySet in interface Long2BooleanMapkeySet in interface Long2BooleanSortedMapkeySet in class Long2BooleanOpenCustomHashMappublic BooleanCollection values()
values in interface java.util.Map<java.lang.Long,java.lang.Boolean>values in interface java.util.SortedMap<java.lang.Long,java.lang.Boolean>values in interface Long2BooleanMapvalues in interface Long2BooleanSortedMapvalues in class Long2BooleanOpenCustomHashMappublic void forEach(LongBooleanConsumer action)
Long2BooleanMapforEach in interface Long2BooleanMapforEach in class Long2BooleanOpenCustomHashMapaction - processor of the values that are iterator overpublic void clear()
clear in interface java.util.Map<java.lang.Long,java.lang.Boolean>clear in class Long2BooleanOpenCustomHashMap