public class Int2BooleanLinkedOpenCustomHashMap extends Int2BooleanOpenCustomHashMap implements Int2BooleanOrderedMap
AbstractInt2BooleanMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Int2BooleanOrderedMap.FastOrderedSetInt2BooleanMap.BuilderCache, Int2BooleanMap.Entry, Int2BooleanMap.FastEntrySet, Int2BooleanMap.MapBuilder| Constructor and Description |
|---|
Int2BooleanLinkedOpenCustomHashMap(int[] keys,
boolean[] values,
float loadFactor,
IntStrategy strategy)
Helper constructor that allow to create a map from unboxed values
|
Int2BooleanLinkedOpenCustomHashMap(int[] keys,
boolean[] values,
IntStrategy strategy)
Helper constructor that allow to create a map from unboxed values
|
Int2BooleanLinkedOpenCustomHashMap(Int2BooleanMap map,
float loadFactor,
IntStrategy strategy)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Int2BooleanLinkedOpenCustomHashMap(Int2BooleanMap map,
IntStrategy strategy)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Int2BooleanLinkedOpenCustomHashMap(java.lang.Integer[] keys,
java.lang.Boolean[] values,
float loadFactor,
IntStrategy strategy)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Int2BooleanLinkedOpenCustomHashMap(java.lang.Integer[] keys,
java.lang.Boolean[] values,
IntStrategy strategy)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Int2BooleanLinkedOpenCustomHashMap(int minCapacity,
float loadFactor,
IntStrategy strategy)
Constructor that defines the minimum capacity and load factor
|
Int2BooleanLinkedOpenCustomHashMap(int minCapacity,
IntStrategy strategy)
Constructor that defines the minimum capacity
|
Int2BooleanLinkedOpenCustomHashMap(IntStrategy strategy)
Default Constructor
|
Int2BooleanLinkedOpenCustomHashMap(java.util.Map<? extends java.lang.Integer,? extends java.lang.Boolean> map,
float loadFactor,
IntStrategy strategy)
A Helper constructor that allows to create a Map with exactly the same values as the provided map.
|
Int2BooleanLinkedOpenCustomHashMap(java.util.Map<? extends java.lang.Integer,? extends java.lang.Boolean> map,
IntStrategy 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() |
void |
clearAndTrim(int size)
Trims the collection down to the requested size and clears all elements while doing so
|
Int2BooleanLinkedOpenCustomHashMap |
copy()
A Function that does a shallow clone of the Map itself.
|
boolean |
firstBooleanValue()
A method to get the first Value of a Map.
|
int |
firstIntKey()
A method to get the first Key of a Map.
|
void |
forEach(IntBooleanConsumer action)
Type Specific forEach method to reduce boxing/unboxing
|
boolean |
getAndMoveToFirst(int key)
A Specific get method that allows to move teh given key/value int the first index.
|
boolean |
getAndMoveToLast(int key)
A Specific get method that allows to move teh given key/value int the last index.
|
ObjectOrderedSet<Int2BooleanMap.Entry> |
int2BooleanEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
IntOrderedSet |
keySet() |
boolean |
lastBooleanValue()
A method to get the last Value of a Map.
|
int |
lastIntKey()
A method to get the last Key of a Map.
|
boolean |
moveToFirst(int key)
A specific move method to move a given key/value to the first index.
|
boolean |
moveToLast(int key)
A specific move method to move a given key/value to the last index.
|
int |
pollFirstIntKey()
A method to get and remove the first Key of a Map.
|
int |
pollLastIntKey()
A method to get and remove the last Key of a Map.
|
boolean |
putAndMoveToFirst(int key,
boolean value)
A customized put method that allows you to insert into the first index.
|
boolean |
putAndMoveToLast(int key,
boolean value)
A customized put method that allows you to insert into the last index.
|
BooleanCollection |
values() |
computeBoolean, computeBooleanIfAbsent, computeBooleanIfPresent, containsKey, containsKey, containsValue, containsValue, 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, containsValue, containsValue, 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 Int2BooleanLinkedOpenCustomHashMap(IntStrategy strategy)
strategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nullpublic Int2BooleanLinkedOpenCustomHashMap(int minCapacity,
IntStrategy 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 Int2BooleanLinkedOpenCustomHashMap(int minCapacity,
float loadFactor,
IntStrategy 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 Int2BooleanLinkedOpenCustomHashMap(java.lang.Integer[] keys,
java.lang.Boolean[] values,
IntStrategy 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 Int2BooleanLinkedOpenCustomHashMap(java.lang.Integer[] keys,
java.lang.Boolean[] values,
float loadFactor,
IntStrategy 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 Int2BooleanLinkedOpenCustomHashMap(int[] keys,
boolean[] values,
IntStrategy 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 Int2BooleanLinkedOpenCustomHashMap(int[] keys,
boolean[] values,
float loadFactor,
IntStrategy 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 Int2BooleanLinkedOpenCustomHashMap(java.util.Map<? extends java.lang.Integer,? extends java.lang.Boolean> map,
IntStrategy strategy)
map - the values that should be present in the mapstrategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nullpublic Int2BooleanLinkedOpenCustomHashMap(java.util.Map<? extends java.lang.Integer,? extends java.lang.Boolean> map,
float loadFactor,
IntStrategy 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 Int2BooleanLinkedOpenCustomHashMap(Int2BooleanMap map, IntStrategy strategy)
map - the values that should be present in the mapstrategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nullpublic Int2BooleanLinkedOpenCustomHashMap(Int2BooleanMap map, float loadFactor, IntStrategy 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(int key,
boolean value)
Int2BooleanOrderedMapputAndMoveToFirst in interface Int2BooleanOrderedMapkey - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public boolean putAndMoveToLast(int key,
boolean value)
Int2BooleanOrderedMapputAndMoveToLast in interface Int2BooleanOrderedMapkey - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public boolean moveToFirst(int key)
Int2BooleanOrderedMapmoveToFirst in interface Int2BooleanOrderedMapkey - that should be moved to the first indexpublic boolean moveToLast(int key)
Int2BooleanOrderedMapmoveToLast in interface Int2BooleanOrderedMapkey - that should be moved to the first lastpublic boolean getAndMoveToFirst(int key)
Int2BooleanOrderedMapgetAndMoveToFirst in interface Int2BooleanOrderedMapkey - that is searched forpublic boolean getAndMoveToLast(int key)
Int2BooleanOrderedMapgetAndMoveToLast in interface Int2BooleanOrderedMapkey - that is searched forpublic Int2BooleanLinkedOpenCustomHashMap copy()
Int2BooleanMapcopy in interface Int2BooleanMapcopy in interface Int2BooleanOrderedMapcopy in class Int2BooleanOpenCustomHashMappublic int firstIntKey()
Int2BooleanOrderedMapfirstIntKey in interface Int2BooleanOrderedMappublic int pollFirstIntKey()
Int2BooleanOrderedMappollFirstIntKey in interface Int2BooleanOrderedMappublic int lastIntKey()
Int2BooleanOrderedMaplastIntKey in interface Int2BooleanOrderedMappublic int pollLastIntKey()
Int2BooleanOrderedMappollLastIntKey in interface Int2BooleanOrderedMappublic boolean firstBooleanValue()
Int2BooleanOrderedMapfirstBooleanValue in interface Int2BooleanOrderedMappublic boolean lastBooleanValue()
Int2BooleanOrderedMaplastBooleanValue in interface Int2BooleanOrderedMappublic ObjectOrderedSet<Int2BooleanMap.Entry> int2BooleanEntrySet()
Int2BooleanMapint2BooleanEntrySet in interface Int2BooleanMapint2BooleanEntrySet in interface Int2BooleanOrderedMapint2BooleanEntrySet in class Int2BooleanOpenCustomHashMappublic IntOrderedSet keySet()
keySet in interface java.util.Map<java.lang.Integer,java.lang.Boolean>keySet in interface Int2BooleanMapkeySet in interface Int2BooleanOrderedMapkeySet in class Int2BooleanOpenCustomHashMappublic BooleanCollection values()
values in interface java.util.Map<java.lang.Integer,java.lang.Boolean>values in interface Int2BooleanMapvalues in class Int2BooleanOpenCustomHashMappublic void forEach(IntBooleanConsumer action)
Int2BooleanMapforEach in interface Int2BooleanMapforEach in class Int2BooleanOpenCustomHashMapaction - processor of the values that are iterator overpublic void clear()
clear in interface java.util.Map<java.lang.Integer,java.lang.Boolean>clear in class Int2BooleanOpenCustomHashMappublic void clearAndTrim(int size)
ITrimmableclearAndTrim in interface ITrimmableclearAndTrim in class Int2BooleanOpenCustomHashMapsize - the amount of elements that should be allowed