public class Double2IntLinkedOpenHashMap extends Double2IntOpenHashMap implements Double2IntOrderedMap
AbstractDouble2IntMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Double2IntOrderedMap.FastOrderedSetDouble2IntMap.BuilderCache, Double2IntMap.Entry, Double2IntMap.FastEntrySet, Double2IntMap.MapBuilder| Constructor and Description |
|---|
Double2IntLinkedOpenHashMap()
Default Constructor
|
Double2IntLinkedOpenHashMap(double[] keys,
int[] values)
Helper constructor that allow to create a map from unboxed values
|
Double2IntLinkedOpenHashMap(double[] keys,
int[] values,
float loadFactor)
Helper constructor that allow to create a map from unboxed values
|
Double2IntLinkedOpenHashMap(java.lang.Double[] keys,
java.lang.Integer[] values)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Double2IntLinkedOpenHashMap(java.lang.Double[] keys,
java.lang.Integer[] values,
float loadFactor)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Double2IntLinkedOpenHashMap(Double2IntMap map)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Double2IntLinkedOpenHashMap(Double2IntMap map,
float loadFactor)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Double2IntLinkedOpenHashMap(int minCapacity)
Constructor that defines the minimum capacity
|
Double2IntLinkedOpenHashMap(int minCapacity,
float loadFactor)
Constructor that defines the minimum capacity and load factor
|
Double2IntLinkedOpenHashMap(java.util.Map<? extends java.lang.Double,? extends java.lang.Integer> map)
A Helper constructor that allows to create a Map with exactly the same values as the provided map.
|
Double2IntLinkedOpenHashMap(java.util.Map<? extends java.lang.Double,? extends java.lang.Integer> 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(int value)
Type Specific method to reduce boxing/unboxing of values
|
boolean |
containsValue(java.lang.Object value)
Deprecated.
|
Double2IntLinkedOpenHashMap |
copy()
A Function that does a shallow clone of the Map itself.
|
ObjectOrderedSet<Double2IntMap.Entry> |
double2IntEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
double |
firstDoubleKey()
A method to get the first Key of a Map.
|
int |
firstIntValue()
A method to get the first Value of a Map.
|
void |
forEach(DoubleIntConsumer action)
Type Specific forEach method to reduce boxing/unboxing
|
int |
getAndMoveToFirst(double key)
A Specific get method that allows to move teh given key/value int the first index.
|
int |
getAndMoveToLast(double key)
A Specific get method that allows to move teh given key/value int the last index.
|
DoubleOrderedSet |
keySet() |
double |
lastDoubleKey()
A method to get the last Key of a Map.
|
int |
lastIntValue()
A method to get the last Value 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.
|
int |
putAndMoveToFirst(double key,
int value)
A customized put method that allows you to insert into the first index.
|
int |
putAndMoveToLast(double key,
int value)
A customized put method that allows you to insert into the last index.
|
IntCollection |
values() |
addTo, computeInt, computeIntIfAbsent, computeIntIfPresent, containsKey, containsKey, get, get, getOrDefault, mergeAllInt, mergeInt, put, putIfAbsent, remove, remove, remove, remove, removeOrDefault, replace, replace, size, subFrom, supplyIntIfAbsent, trimaddToAll, entrySet, equals, getDefaultReturnValue, getOrDefault, hashCode, put, putAll, putAll, putAll, putAll, putAllIfAbsent, replaceInts, replaceInts, setDefaultReturnValuesynchronize, synchronize, unmodifiableaddTo, addToAll, builder, compute, computeIfAbsent, computeIfPresent, computeInt, computeIntIfAbsent, computeIntIfPresent, containsKey, containsKey, entrySet, forEach, get, get, getDefaultReturnValue, getOrDefault, getOrDefault, merge, mergeAllInt, mergeInt, put, put, putAll, putAll, putAll, putAll, putAll, putAllIfAbsent, putIfAbsent, putIfAbsent, remove, remove, remove, remove, removeOrDefault, replace, replace, replace, replace, replaceAll, replaceInts, replaceInts, setDefaultReturnValue, subFrom, supplyIntIfAbsentapplyAsIntclearAndTrim, trimpublic Double2IntLinkedOpenHashMap()
public Double2IntLinkedOpenHashMap(int minCapacity)
minCapacity - the minimum capacity the HashMap is allowed to be.java.lang.IllegalStateException - if the minimum capacity is negativepublic Double2IntLinkedOpenHashMap(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 Double2IntLinkedOpenHashMap(java.lang.Double[] keys,
java.lang.Integer[] 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 Double2IntLinkedOpenHashMap(java.lang.Double[] keys,
java.lang.Integer[] 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 Double2IntLinkedOpenHashMap(double[] keys,
int[] 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 Double2IntLinkedOpenHashMap(double[] keys,
int[] 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 Double2IntLinkedOpenHashMap(java.util.Map<? extends java.lang.Double,? extends java.lang.Integer> map)
map - the values that should be present in the mappublic Double2IntLinkedOpenHashMap(java.util.Map<? extends java.lang.Double,? extends java.lang.Integer> 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 Double2IntLinkedOpenHashMap(Double2IntMap map)
map - the values that should be present in the mappublic Double2IntLinkedOpenHashMap(Double2IntMap 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 int putAndMoveToFirst(double key,
int value)
Double2IntOrderedMapputAndMoveToFirst in interface Double2IntOrderedMapkey - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public int putAndMoveToLast(double key,
int value)
Double2IntOrderedMapputAndMoveToLast in interface Double2IntOrderedMapkey - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public boolean moveToFirst(double key)
Double2IntOrderedMapmoveToFirst in interface Double2IntOrderedMapkey - that should be moved to the first indexpublic boolean moveToLast(double key)
Double2IntOrderedMapmoveToLast in interface Double2IntOrderedMapkey - that should be moved to the first lastpublic int getAndMoveToFirst(double key)
Double2IntOrderedMapgetAndMoveToFirst in interface Double2IntOrderedMapkey - that is searched forpublic int getAndMoveToLast(double key)
Double2IntOrderedMapgetAndMoveToLast in interface Double2IntOrderedMapkey - that is searched forpublic boolean containsValue(int value)
Double2IntMapcontainsValue in interface Double2IntMapcontainsValue in class Double2IntOpenHashMapvalue - element that is searched for@Deprecated public boolean containsValue(java.lang.Object value)
containsValue in interface java.util.Map<java.lang.Double,java.lang.Integer>containsValue in interface Double2IntMapcontainsValue in class Double2IntOpenHashMapvalue - that is searched for.Map.containsValue(Object)public Double2IntLinkedOpenHashMap copy()
Double2IntMapcopy in interface Double2IntMapcopy in interface Double2IntOrderedMapcopy in class Double2IntOpenHashMappublic double firstDoubleKey()
Double2IntOrderedMapfirstDoubleKey in interface Double2IntOrderedMappublic double pollFirstDoubleKey()
Double2IntOrderedMappollFirstDoubleKey in interface Double2IntOrderedMappublic double lastDoubleKey()
Double2IntOrderedMaplastDoubleKey in interface Double2IntOrderedMappublic double pollLastDoubleKey()
Double2IntOrderedMappollLastDoubleKey in interface Double2IntOrderedMappublic int firstIntValue()
Double2IntOrderedMapfirstIntValue in interface Double2IntOrderedMappublic int lastIntValue()
Double2IntOrderedMaplastIntValue in interface Double2IntOrderedMappublic ObjectOrderedSet<Double2IntMap.Entry> double2IntEntrySet()
Double2IntMapdouble2IntEntrySet in interface Double2IntMapdouble2IntEntrySet in interface Double2IntOrderedMapdouble2IntEntrySet in class Double2IntOpenHashMappublic DoubleOrderedSet keySet()
keySet in interface java.util.Map<java.lang.Double,java.lang.Integer>keySet in interface Double2IntMapkeySet in interface Double2IntOrderedMapkeySet in class Double2IntOpenHashMappublic IntCollection values()
values in interface java.util.Map<java.lang.Double,java.lang.Integer>values in interface Double2IntMapvalues in class Double2IntOpenHashMappublic void forEach(DoubleIntConsumer action)
Double2IntMapforEach in interface Double2IntMapforEach in class Double2IntOpenHashMapaction - processor of the values that are iterator overpublic void clear()
clear in interface java.util.Map<java.lang.Double,java.lang.Integer>clear in class Double2IntOpenHashMappublic void clearAndTrim(int size)
ITrimmableclearAndTrim in interface ITrimmableclearAndTrim in class Double2IntOpenHashMapsize - the amount of elements that should be allowed