public class Double2BooleanLinkedOpenCustomHashMap extends Double2BooleanOpenCustomHashMap implements Double2BooleanSortedMap
AbstractDouble2BooleanMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Double2BooleanSortedMap.FastSortedSetDouble2BooleanMap.Entry, Double2BooleanMap.FastEntrySet| Constructor and Description |
|---|
Double2BooleanLinkedOpenCustomHashMap(double[] keys,
boolean[] values,
DoubleStrategy strategy)
Helper constructor that allow to create a map from unboxed values
|
Double2BooleanLinkedOpenCustomHashMap(java.lang.Double[] keys,
java.lang.Boolean[] values,
DoubleStrategy strategy)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Double2BooleanLinkedOpenCustomHashMap(double[] keys,
boolean[] values,
float loadFactor,
DoubleStrategy strategy)
Helper constructor that allow to create a map from unboxed values
|
Double2BooleanLinkedOpenCustomHashMap(java.lang.Double[] keys,
java.lang.Boolean[] values,
float loadFactor,
DoubleStrategy strategy)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Double2BooleanLinkedOpenCustomHashMap(Double2BooleanMap map,
DoubleStrategy strategy)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Double2BooleanLinkedOpenCustomHashMap(Double2BooleanMap map,
float loadFactor,
DoubleStrategy strategy)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Double2BooleanLinkedOpenCustomHashMap(DoubleStrategy strategy)
Default Constructor
|
Double2BooleanLinkedOpenCustomHashMap(int minCapacity,
DoubleStrategy strategy)
Constructor that defines the minimum capacity
|
Double2BooleanLinkedOpenCustomHashMap(int minCapacity,
float loadFactor,
DoubleStrategy strategy)
Constructor that defines the minimum capacity and load factor
|
Double2BooleanLinkedOpenCustomHashMap(java.util.Map<? extends java.lang.Double,? extends java.lang.Boolean> map,
DoubleStrategy strategy)
A Helper constructor that allows to create a Map with exactly the same values as the provided map.
|
Double2BooleanLinkedOpenCustomHashMap(java.util.Map<? extends java.lang.Double,? extends java.lang.Boolean> map,
float loadFactor,
DoubleStrategy 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() |
DoubleComparator |
comparator() |
ObjectSet<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.
|
Double2BooleanSortedMap |
headMap(double toKey)
A Type Specific HeadMap method to reduce boxing/unboxing
|
DoubleSet |
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.
|
Double2BooleanSortedMap |
subMap(double fromKey,
double toKey)
A Type Specific SubMap method to reduce boxing/unboxing
|
Double2BooleanSortedMap |
tailMap(double 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, remDouble, remDoubleOrDefault, 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, remDouble, remDoubleOrDefault, remove, remove, remove, replace, replace, replace, replace, replaceAll, replaceBooleans, replaceBooleans, setDefaultReturnValuepublic Double2BooleanLinkedOpenCustomHashMap(DoubleStrategy strategy)
strategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nullpublic Double2BooleanLinkedOpenCustomHashMap(int minCapacity,
DoubleStrategy 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 Double2BooleanLinkedOpenCustomHashMap(int minCapacity,
float loadFactor,
DoubleStrategy 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 Double2BooleanLinkedOpenCustomHashMap(java.lang.Double[] keys,
java.lang.Boolean[] values,
DoubleStrategy 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 Double2BooleanLinkedOpenCustomHashMap(java.lang.Double[] keys,
java.lang.Boolean[] values,
float loadFactor,
DoubleStrategy 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 Double2BooleanLinkedOpenCustomHashMap(double[] keys,
boolean[] values,
DoubleStrategy 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 Double2BooleanLinkedOpenCustomHashMap(double[] keys,
boolean[] values,
float loadFactor,
DoubleStrategy 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 Double2BooleanLinkedOpenCustomHashMap(java.util.Map<? extends java.lang.Double,? extends java.lang.Boolean> map,
DoubleStrategy strategy)
map - the values that should be present in the mapstrategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nullpublic Double2BooleanLinkedOpenCustomHashMap(java.util.Map<? extends java.lang.Double,? extends java.lang.Boolean> map,
float loadFactor,
DoubleStrategy 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 Double2BooleanLinkedOpenCustomHashMap(Double2BooleanMap map, DoubleStrategy strategy)
map - the values that should be present in the mapstrategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nullpublic Double2BooleanLinkedOpenCustomHashMap(Double2BooleanMap map, float loadFactor, DoubleStrategy 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(double key,
boolean value)
Double2BooleanSortedMapputAndMoveToFirst in interface Double2BooleanSortedMapkey - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public boolean putAndMoveToLast(double key,
boolean value)
Double2BooleanSortedMapputAndMoveToLast in interface Double2BooleanSortedMapkey - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public boolean moveToFirst(double key)
Double2BooleanSortedMapmoveToFirst in interface Double2BooleanSortedMapkey - that should be moved to the first indexpublic boolean moveToLast(double key)
Double2BooleanSortedMapmoveToLast in interface Double2BooleanSortedMapkey - that should be moved to the first lastpublic boolean getAndMoveToFirst(double key)
Double2BooleanSortedMapgetAndMoveToFirst in interface Double2BooleanSortedMapkey - that is searched forpublic boolean getAndMoveToLast(double key)
Double2BooleanSortedMapgetAndMoveToLast in interface Double2BooleanSortedMapkey - that is searched forpublic DoubleComparator comparator()
comparator in interface java.util.SortedMap<java.lang.Double,java.lang.Boolean>comparator in interface Double2BooleanSortedMappublic Double2BooleanSortedMap subMap(double fromKey, double toKey)
Double2BooleanSortedMapsubMap in interface Double2BooleanSortedMapfromKey - where the submap should starttoKey - where the subMap should endpublic Double2BooleanSortedMap headMap(double toKey)
Double2BooleanSortedMapheadMap in interface Double2BooleanSortedMaptoKey - where the headMap should endpublic Double2BooleanSortedMap tailMap(double fromKey)
Double2BooleanSortedMaptailMap in interface Double2BooleanSortedMapfromKey - where the TailMap should startpublic double firstDoubleKey()
Double2BooleanSortedMapfirstDoubleKey in interface Double2BooleanSortedMappublic double pollFirstDoubleKey()
Double2BooleanSortedMappollFirstDoubleKey in interface Double2BooleanSortedMappublic double lastDoubleKey()
Double2BooleanSortedMaplastDoubleKey in interface Double2BooleanSortedMappublic double pollLastDoubleKey()
Double2BooleanSortedMappollLastDoubleKey in interface Double2BooleanSortedMappublic boolean firstBooleanValue()
Double2BooleanSortedMapfirstBooleanValue in interface Double2BooleanSortedMappublic boolean lastBooleanValue()
Double2BooleanSortedMaplastBooleanValue in interface Double2BooleanSortedMappublic ObjectSet<Double2BooleanMap.Entry> double2BooleanEntrySet()
Double2BooleanMapdouble2BooleanEntrySet in interface Double2BooleanMapdouble2BooleanEntrySet in class Double2BooleanOpenCustomHashMappublic DoubleSet keySet()
keySet in interface java.util.Map<java.lang.Double,java.lang.Boolean>keySet in interface java.util.SortedMap<java.lang.Double,java.lang.Boolean>keySet in interface Double2BooleanMapkeySet in interface Double2BooleanSortedMapkeySet in class Double2BooleanOpenCustomHashMappublic BooleanCollection values()
values in interface java.util.Map<java.lang.Double,java.lang.Boolean>values in interface java.util.SortedMap<java.lang.Double,java.lang.Boolean>values in interface Double2BooleanMapvalues in interface Double2BooleanSortedMapvalues in class Double2BooleanOpenCustomHashMappublic void forEach(DoubleBooleanConsumer action)
Double2BooleanMapforEach in interface Double2BooleanMapforEach in class Double2BooleanOpenCustomHashMapaction - 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 Double2BooleanOpenCustomHashMap