public class Double2BooleanLinkedOpenHashMap extends Double2BooleanOpenHashMap implements Double2BooleanOrderedMap
AbstractDouble2BooleanMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Double2BooleanOrderedMap.FastOrderedSetDouble2BooleanMap.BuilderCache, Double2BooleanMap.Entry, Double2BooleanMap.FastEntrySet, Double2BooleanMap.MapBuilder| Constructor and Description |
|---|
Double2BooleanLinkedOpenHashMap()
Default Constructor
|
Double2BooleanLinkedOpenHashMap(double[] keys,
boolean[] values)
Helper constructor that allow to create a map from unboxed values
|
Double2BooleanLinkedOpenHashMap(java.lang.Double[] keys,
java.lang.Boolean[] values)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Double2BooleanLinkedOpenHashMap(double[] keys,
boolean[] values,
float loadFactor)
Helper constructor that allow to create a map from unboxed values
|
Double2BooleanLinkedOpenHashMap(java.lang.Double[] keys,
java.lang.Boolean[] values,
float loadFactor)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Double2BooleanLinkedOpenHashMap(Double2BooleanMap map)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Double2BooleanLinkedOpenHashMap(Double2BooleanMap map,
float loadFactor)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Double2BooleanLinkedOpenHashMap(int minCapacity)
Constructor that defines the minimum capacity
|
Double2BooleanLinkedOpenHashMap(int minCapacity,
float loadFactor)
Constructor that defines the minimum capacity and load factor
|
Double2BooleanLinkedOpenHashMap(java.util.Map<? extends java.lang.Double,? extends java.lang.Boolean> map)
A Helper constructor that allows to create a Map with exactly the same values as the provided map.
|
Double2BooleanLinkedOpenHashMap(java.util.Map<? extends java.lang.Double,? 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.
|
Double2BooleanLinkedOpenHashMap |
copy()
A Function that does a shallow clone of the Map itself.
|
ObjectOrderedSet<Double2BooleanMap.Entry> |
double2BooleanEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
boolean |
firstBooleanValue()
A method to get the first Value of a Map.
|
double |
firstDoubleKey()
A method to get the first Key of a Map.
|
void |
forEach(DoubleBooleanConsumer action)
Type Specific forEach method to reduce boxing/unboxing
|
boolean |
getAndMoveToFirst(double key)
A Specific get method that allows to move teh given key/value int the first index.
|
boolean |
getAndMoveToLast(double key)
A Specific get method that allows to move teh given key/value int the last index.
|
DoubleOrderedSet |
keySet() |
boolean |
lastBooleanValue()
A method to get the last Value of a Map.
|
double |
lastDoubleKey()
A method to get the last Key of a Map.
|
boolean |
moveToFirst(double key)
A specific move method to move a given key/value to the first index.
|
boolean |
moveToLast(double key)
A specific move method to move a given key/value to the last index.
|
double |
pollFirstDoubleKey()
A method to get and remove the first Key of a Map.
|
double |
pollLastDoubleKey()
A method to get and remove the last Key of a Map.
|
boolean |
putAndMoveToFirst(double key,
boolean value)
A customized put method that allows you to insert into the first index.
|
boolean |
putAndMoveToLast(double 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, putAll, putAll, putAll, putAll, putAll, putAllIfAbsent, putIfAbsent, putIfAbsent, remove, remove, remove, remove, removeOrDefault, replace, replace, replace, replace, replaceAll, replaceBooleans, replaceBooleans, setDefaultReturnValue, supplyBooleanIfAbsentand, andType, negate, or, orType, testclearAndTrim, trimpublic Double2BooleanLinkedOpenHashMap()
public Double2BooleanLinkedOpenHashMap(int minCapacity)
minCapacity - the minimum capacity the HashMap is allowed to be.java.lang.IllegalStateException - if the minimum capacity is negativepublic Double2BooleanLinkedOpenHashMap(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 Double2BooleanLinkedOpenHashMap(java.lang.Double[] 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 Double2BooleanLinkedOpenHashMap(java.lang.Double[] 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 Double2BooleanLinkedOpenHashMap(double[] 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 Double2BooleanLinkedOpenHashMap(double[] 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 Double2BooleanLinkedOpenHashMap(java.util.Map<? extends java.lang.Double,? extends java.lang.Boolean> map)
map - the values that should be present in the mappublic Double2BooleanLinkedOpenHashMap(java.util.Map<? extends java.lang.Double,? 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 Double2BooleanLinkedOpenHashMap(Double2BooleanMap map)
map - the values that should be present in the mappublic Double2BooleanLinkedOpenHashMap(Double2BooleanMap 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(double key,
boolean value)
Double2BooleanOrderedMapputAndMoveToFirst in interface Double2BooleanOrderedMapkey - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public boolean putAndMoveToLast(double key,
boolean value)
Double2BooleanOrderedMapputAndMoveToLast in interface Double2BooleanOrderedMapkey - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public boolean moveToFirst(double key)
Double2BooleanOrderedMapmoveToFirst in interface Double2BooleanOrderedMapkey - that should be moved to the first indexpublic boolean moveToLast(double key)
Double2BooleanOrderedMapmoveToLast in interface Double2BooleanOrderedMapkey - that should be moved to the first lastpublic boolean getAndMoveToFirst(double key)
Double2BooleanOrderedMapgetAndMoveToFirst in interface Double2BooleanOrderedMapkey - that is searched forpublic boolean getAndMoveToLast(double key)
Double2BooleanOrderedMapgetAndMoveToLast in interface Double2BooleanOrderedMapkey - that is searched forpublic boolean containsValue(boolean value)
Double2BooleanMapcontainsValue in interface Double2BooleanMapcontainsValue in class Double2BooleanOpenHashMapvalue - element that is searched for@Deprecated public boolean containsValue(java.lang.Object value)
containsValue in interface java.util.Map<java.lang.Double,java.lang.Boolean>containsValue in interface Double2BooleanMapcontainsValue in class Double2BooleanOpenHashMapvalue - that is searched for.Map.containsValue(Object)public Double2BooleanLinkedOpenHashMap copy()
Double2BooleanMapcopy in interface Double2BooleanMapcopy in interface Double2BooleanOrderedMapcopy in class Double2BooleanOpenHashMappublic double firstDoubleKey()
Double2BooleanOrderedMapfirstDoubleKey in interface Double2BooleanOrderedMappublic double pollFirstDoubleKey()
Double2BooleanOrderedMappollFirstDoubleKey in interface Double2BooleanOrderedMappublic double lastDoubleKey()
Double2BooleanOrderedMaplastDoubleKey in interface Double2BooleanOrderedMappublic double pollLastDoubleKey()
Double2BooleanOrderedMappollLastDoubleKey in interface Double2BooleanOrderedMappublic boolean firstBooleanValue()
Double2BooleanOrderedMapfirstBooleanValue in interface Double2BooleanOrderedMappublic boolean lastBooleanValue()
Double2BooleanOrderedMaplastBooleanValue in interface Double2BooleanOrderedMappublic ObjectOrderedSet<Double2BooleanMap.Entry> double2BooleanEntrySet()
Double2BooleanMapdouble2BooleanEntrySet in interface Double2BooleanMapdouble2BooleanEntrySet in interface Double2BooleanOrderedMapdouble2BooleanEntrySet in class Double2BooleanOpenHashMappublic DoubleOrderedSet keySet()
keySet in interface java.util.Map<java.lang.Double,java.lang.Boolean>keySet in interface Double2BooleanMapkeySet in interface Double2BooleanOrderedMapkeySet in class Double2BooleanOpenHashMappublic BooleanCollection values()
values in interface java.util.Map<java.lang.Double,java.lang.Boolean>values in interface Double2BooleanMapvalues in class Double2BooleanOpenHashMappublic void forEach(DoubleBooleanConsumer action)
Double2BooleanMapforEach in interface Double2BooleanMapforEach in class Double2BooleanOpenHashMapaction - processor of the values that are iterator overpublic void clear()
clear in interface java.util.Map<java.lang.Double,java.lang.Boolean>clear in class Double2BooleanOpenHashMappublic void clearAndTrim(int size)
ITrimmableclearAndTrim in interface ITrimmableclearAndTrim in class Double2BooleanOpenHashMapsize - the amount of elements that should be allowed