public class Double2IntLinkedOpenHashMap extends Double2IntOpenHashMap implements Double2IntSortedMap
AbstractDouble2IntMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Double2IntSortedMap.FastSortedSetDouble2IntMap.Entry, Double2IntMap.FastEntrySet| 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() |
DoubleComparator |
comparator() |
ObjectSet<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.
|
Double2IntSortedMap |
headMap(double toKey)
A Type Specific HeadMap method to reduce boxing/unboxing
|
DoubleSet |
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.
|
Double2IntSortedMap |
subMap(double fromKey,
double toKey)
A Type Specific SubMap method to reduce boxing/unboxing
|
Double2IntSortedMap |
tailMap(double fromKey)
A Type Specific TailMap method to reduce boxing/unboxing
|
IntCollection |
values() |
addTo, computeInt, computeIntIfAbsent, computeIntIfPresent, containsKey, containsKey, containsValue, containsValue, get, getInt, getOrDefault, mergeAllInt, mergeInt, put, putIfAbsent, remDouble, remDoubleOrDefault, remove, remove, remove, replace, replace, sizeaddToAll, entrySet, equals, getDefaultReturnValue, getOrDefault, hashCode, putAll, putAll, putAll, putAllIfAbsent, replaceInts, replaceInts, setDefaultReturnValuefirstKey, headMap, lastKey, subMap, tailMapaddTo, addToAll, compute, computeIfAbsent, computeIfPresent, computeInt, computeIntIfAbsent, computeIntIfPresent, containsKey, containsKey, containsValue, containsValue, entrySet, forEach, get, getDefaultReturnValue, getInt, getOrDefault, getOrDefault, merge, mergeAllInt, mergeInt, put, put, putAll, putAll, putAll, putAllIfAbsent, putIfAbsent, putIfAbsent, remDouble, remDoubleOrDefault, remove, remove, remove, replace, replace, replace, replace, replaceAll, replaceInts, replaceInts, setDefaultReturnValueapplyAsIntpublic 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)
Double2IntSortedMapputAndMoveToFirst in interface Double2IntSortedMapkey - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public int putAndMoveToLast(double key,
int value)
Double2IntSortedMapputAndMoveToLast in interface Double2IntSortedMapkey - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public boolean moveToFirst(double key)
Double2IntSortedMapmoveToFirst in interface Double2IntSortedMapkey - that should be moved to the first indexpublic boolean moveToLast(double key)
Double2IntSortedMapmoveToLast in interface Double2IntSortedMapkey - that should be moved to the first lastpublic int getAndMoveToFirst(double key)
Double2IntSortedMapgetAndMoveToFirst in interface Double2IntSortedMapkey - that is searched forpublic int getAndMoveToLast(double key)
Double2IntSortedMapgetAndMoveToLast in interface Double2IntSortedMapkey - that is searched forpublic DoubleComparator comparator()
comparator in interface java.util.SortedMap<java.lang.Double,java.lang.Integer>comparator in interface Double2IntSortedMappublic Double2IntSortedMap subMap(double fromKey, double toKey)
Double2IntSortedMapsubMap in interface Double2IntSortedMapfromKey - where the submap should starttoKey - where the subMap should endpublic Double2IntSortedMap headMap(double toKey)
Double2IntSortedMapheadMap in interface Double2IntSortedMaptoKey - where the headMap should endpublic Double2IntSortedMap tailMap(double fromKey)
Double2IntSortedMaptailMap in interface Double2IntSortedMapfromKey - where the TailMap should startpublic double firstDoubleKey()
Double2IntSortedMapfirstDoubleKey in interface Double2IntSortedMappublic double pollFirstDoubleKey()
Double2IntSortedMappollFirstDoubleKey in interface Double2IntSortedMappublic double lastDoubleKey()
Double2IntSortedMaplastDoubleKey in interface Double2IntSortedMappublic double pollLastDoubleKey()
Double2IntSortedMappollLastDoubleKey in interface Double2IntSortedMappublic int firstIntValue()
Double2IntSortedMapfirstIntValue in interface Double2IntSortedMappublic int lastIntValue()
Double2IntSortedMaplastIntValue in interface Double2IntSortedMappublic ObjectSet<Double2IntMap.Entry> double2IntEntrySet()
Double2IntMapdouble2IntEntrySet in interface Double2IntMapdouble2IntEntrySet in class Double2IntOpenHashMappublic DoubleSet keySet()
keySet in interface java.util.Map<java.lang.Double,java.lang.Integer>keySet in interface java.util.SortedMap<java.lang.Double,java.lang.Integer>keySet in interface Double2IntMapkeySet in interface Double2IntSortedMapkeySet in class Double2IntOpenHashMappublic IntCollection values()
values in interface java.util.Map<java.lang.Double,java.lang.Integer>values in interface java.util.SortedMap<java.lang.Double,java.lang.Integer>values in interface Double2IntMapvalues in interface Double2IntSortedMapvalues 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 Double2IntOpenHashMap