public class Long2BooleanLinkedOpenHashMap extends Long2BooleanOpenHashMap implements Long2BooleanSortedMap
AbstractLong2BooleanMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Long2BooleanSortedMap.FastSortedSetLong2BooleanMap.Entry, Long2BooleanMap.FastEntrySet| Constructor and Description |
|---|
Long2BooleanLinkedOpenHashMap()
Default Constructor
|
Long2BooleanLinkedOpenHashMap(int minCapacity)
Constructor that defines the minimum capacity
|
Long2BooleanLinkedOpenHashMap(int minCapacity,
float loadFactor)
Constructor that defines the minimum capacity and load factor
|
Long2BooleanLinkedOpenHashMap(long[] keys,
boolean[] values)
Helper constructor that allow to create a map from unboxed values
|
Long2BooleanLinkedOpenHashMap(java.lang.Long[] keys,
java.lang.Boolean[] values)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Long2BooleanLinkedOpenHashMap(long[] keys,
boolean[] values,
float loadFactor)
Helper constructor that allow to create a map from unboxed values
|
Long2BooleanLinkedOpenHashMap(java.lang.Long[] keys,
java.lang.Boolean[] values,
float loadFactor)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Long2BooleanLinkedOpenHashMap(Long2BooleanMap map)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Long2BooleanLinkedOpenHashMap(Long2BooleanMap map,
float loadFactor)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Long2BooleanLinkedOpenHashMap(java.util.Map<? extends java.lang.Long,? extends java.lang.Boolean> map)
A Helper constructor that allows to create a Map with exactly the same values as the provided map.
|
Long2BooleanLinkedOpenHashMap(java.util.Map<? extends java.lang.Long,? extends java.lang.Boolean> map,
float loadFactor)
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 Long2BooleanLinkedOpenHashMap()
public Long2BooleanLinkedOpenHashMap(int minCapacity)
minCapacity - the minimum capacity the HashMap is allowed to be.java.lang.IllegalStateException - if the minimum capacity is negativepublic Long2BooleanLinkedOpenHashMap(int minCapacity,
float loadFactor)
minCapacity - the minimum capacity the HashMap is allowed to be.loadFactor - the percentage of how full the backing array can be before they resizejava.lang.IllegalStateException - if the minimum capacity is negativejava.lang.IllegalStateException - if the loadfactor is either below/equal to 0 or above/equal to 1public Long2BooleanLinkedOpenHashMap(java.lang.Long[] 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 Long2BooleanLinkedOpenHashMap(java.lang.Long[] keys,
java.lang.Boolean[] values,
float loadFactor)
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 resizejava.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 Long2BooleanLinkedOpenHashMap(long[] 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 Long2BooleanLinkedOpenHashMap(long[] keys,
boolean[] values,
float loadFactor)
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 resizejava.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 Long2BooleanLinkedOpenHashMap(java.util.Map<? extends java.lang.Long,? extends java.lang.Boolean> map)
map - the values that should be present in the mappublic Long2BooleanLinkedOpenHashMap(java.util.Map<? extends java.lang.Long,? extends java.lang.Boolean> map,
float loadFactor)
map - the values that should be present in the maploadFactor - the percentage of how full the backing array can be before they resizejava.lang.IllegalStateException - if the loadfactor is either below/equal to 0 or above/equal to 1public Long2BooleanLinkedOpenHashMap(Long2BooleanMap map)
map - the values that should be present in the mappublic Long2BooleanLinkedOpenHashMap(Long2BooleanMap map, float loadFactor)
map - the values that should be present in the maploadFactor - the percentage of how full the backing array can be before they resizejava.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 Long2BooleanOpenHashMappublic 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 Long2BooleanOpenHashMappublic 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 Long2BooleanOpenHashMappublic void forEach(LongBooleanConsumer action)
Long2BooleanMapforEach in interface Long2BooleanMapforEach in class Long2BooleanOpenHashMapaction - 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 Long2BooleanOpenHashMap