public class Long2BooleanLinkedOpenHashMap extends Long2BooleanOpenHashMap implements Long2BooleanOrderedMap
AbstractLong2BooleanMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Long2BooleanOrderedMap.FastOrderedSetLong2BooleanMap.BuilderCache, Long2BooleanMap.Entry, Long2BooleanMap.FastEntrySet, Long2BooleanMap.MapBuilder| 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() |
void |
clearAndTrim(int size)
Trims the collection down to the requested size and clears all elements while doing so
|
boolean |
containsValue(boolean value)
Type Specific method to reduce boxing/unboxing of values
|
boolean |
containsValue(java.lang.Object value)
Deprecated.
|
Long2BooleanLinkedOpenHashMap |
copy()
A Function that does a shallow clone of the Map itself.
|
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.
|
LongOrderedSet |
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.
|
ObjectOrderedSet<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.
|
BooleanCollection |
values() |
computeBoolean, computeBooleanIfAbsent, computeBooleanIfPresent, containsKey, containsKey, get, get, getOrDefault, mergeAllBoolean, mergeBoolean, put, putIfAbsent, remove, remove, remove, remove, removeOrDefault, replace, replace, size, supplyBooleanIfAbsent, trimentrySet, equals, getDefaultReturnValue, getOrDefault, hashCode, put, putAll, putAll, putAll, putAll, putAllIfAbsent, replaceBooleans, replaceBooleans, setDefaultReturnValuesynchronize, synchronize, unmodifiablebuilder, compute, computeBoolean, computeBooleanIfAbsent, computeBooleanIfPresent, computeIfAbsent, computeIfPresent, containsKey, containsKey, entrySet, forEach, get, get, getDefaultReturnValue, getOrDefault, getOrDefault, merge, mergeAllBoolean, mergeBoolean, put, put, put, put, putAll, putAll, putAll, putAll, putAll, putAllIfAbsent, putIfAbsent, putIfAbsent, remove, remove, remove, remove, removeOrDefault, replace, replace, replace, replace, replaceAll, replaceBooleans, replaceBooleans, setDefaultReturnValue, supplyBooleanIfAbsent, testclearAndTrim, trimpublic 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)
Long2BooleanOrderedMapputAndMoveToFirst in interface Long2BooleanOrderedMapkey - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public boolean putAndMoveToLast(long key,
boolean value)
Long2BooleanOrderedMapputAndMoveToLast in interface Long2BooleanOrderedMapkey - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public boolean moveToFirst(long key)
Long2BooleanOrderedMapmoveToFirst in interface Long2BooleanOrderedMapkey - that should be moved to the first indexpublic boolean moveToLast(long key)
Long2BooleanOrderedMapmoveToLast in interface Long2BooleanOrderedMapkey - that should be moved to the first lastpublic boolean getAndMoveToFirst(long key)
Long2BooleanOrderedMapgetAndMoveToFirst in interface Long2BooleanOrderedMapkey - that is searched forpublic boolean getAndMoveToLast(long key)
Long2BooleanOrderedMapgetAndMoveToLast in interface Long2BooleanOrderedMapkey - that is searched forpublic boolean containsValue(boolean value)
Long2BooleanMapcontainsValue in interface Long2BooleanMapcontainsValue in class Long2BooleanOpenHashMapvalue - element that is searched for@Deprecated public boolean containsValue(java.lang.Object value)
containsValue in interface java.util.Map<java.lang.Long,java.lang.Boolean>containsValue in interface Long2BooleanMapcontainsValue in class Long2BooleanOpenHashMapvalue - that is searched for.Map.containsValue(Object)public Long2BooleanLinkedOpenHashMap copy()
Long2BooleanMapcopy in interface Long2BooleanMapcopy in interface Long2BooleanOrderedMapcopy in class Long2BooleanOpenHashMappublic long firstLongKey()
Long2BooleanOrderedMapfirstLongKey in interface Long2BooleanOrderedMappublic long pollFirstLongKey()
Long2BooleanOrderedMappollFirstLongKey in interface Long2BooleanOrderedMappublic long lastLongKey()
Long2BooleanOrderedMaplastLongKey in interface Long2BooleanOrderedMappublic long pollLastLongKey()
Long2BooleanOrderedMappollLastLongKey in interface Long2BooleanOrderedMappublic boolean firstBooleanValue()
Long2BooleanOrderedMapfirstBooleanValue in interface Long2BooleanOrderedMappublic boolean lastBooleanValue()
Long2BooleanOrderedMaplastBooleanValue in interface Long2BooleanOrderedMappublic ObjectOrderedSet<Long2BooleanMap.Entry> long2BooleanEntrySet()
Long2BooleanMaplong2BooleanEntrySet in interface Long2BooleanMaplong2BooleanEntrySet in interface Long2BooleanOrderedMaplong2BooleanEntrySet in class Long2BooleanOpenHashMappublic LongOrderedSet keySet()
keySet in interface java.util.Map<java.lang.Long,java.lang.Boolean>keySet in interface Long2BooleanMapkeySet in interface Long2BooleanOrderedMapkeySet in class Long2BooleanOpenHashMappublic BooleanCollection values()
values in interface java.util.Map<java.lang.Long,java.lang.Boolean>values in interface Long2BooleanMapvalues 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 Long2BooleanOpenHashMappublic void clearAndTrim(int size)
ITrimmableclearAndTrim in interface ITrimmableclearAndTrim in class Long2BooleanOpenHashMapsize - the amount of elements that should be allowed