public class Float2DoubleLinkedOpenHashMap extends Float2DoubleOpenHashMap implements Float2DoubleSortedMap
AbstractFloat2DoubleMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Float2DoubleSortedMap.FastSortedSetFloat2DoubleMap.Entry, Float2DoubleMap.FastEntrySet| Constructor and Description |
|---|
Float2DoubleLinkedOpenHashMap()
Default Constructor
|
Float2DoubleLinkedOpenHashMap(float[] keys,
double[] values)
Helper constructor that allow to create a map from unboxed values
|
Float2DoubleLinkedOpenHashMap(java.lang.Float[] keys,
java.lang.Double[] values)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Float2DoubleLinkedOpenHashMap(float[] keys,
double[] values,
float loadFactor)
Helper constructor that allow to create a map from unboxed values
|
Float2DoubleLinkedOpenHashMap(java.lang.Float[] keys,
java.lang.Double[] values,
float loadFactor)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Float2DoubleLinkedOpenHashMap(Float2DoubleMap map)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Float2DoubleLinkedOpenHashMap(Float2DoubleMap map,
float loadFactor)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Float2DoubleLinkedOpenHashMap(int minCapacity)
Constructor that defines the minimum capacity
|
Float2DoubleLinkedOpenHashMap(int minCapacity,
float loadFactor)
Constructor that defines the minimum capacity and load factor
|
Float2DoubleLinkedOpenHashMap(java.util.Map<? extends java.lang.Float,? extends java.lang.Double> map)
A Helper constructor that allows to create a Map with exactly the same values as the provided map.
|
Float2DoubleLinkedOpenHashMap(java.util.Map<? extends java.lang.Float,? extends java.lang.Double> 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() |
FloatComparator |
comparator() |
double |
firstDoubleValue()
A method to get the first Value of a Map.
|
float |
firstFloatKey()
A method to get the first Key of a Map.
|
ObjectSet<Float2DoubleMap.Entry> |
float2DoubleEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
void |
forEach(FloatDoubleConsumer action)
Type Specific forEach method to reduce boxing/unboxing
|
double |
getAndMoveToFirst(float key)
A Specific get method that allows to move teh given key/value int the first index.
|
double |
getAndMoveToLast(float key)
A Specific get method that allows to move teh given key/value int the last index.
|
Float2DoubleSortedMap |
headMap(float toKey)
A Type Specific HeadMap method to reduce boxing/unboxing
|
FloatSet |
keySet() |
double |
lastDoubleValue()
A method to get the last Value of a Map.
|
float |
lastFloatKey()
A method to get the last Key of a Map.
|
boolean |
moveToFirst(float key)
A specific move method to move a given key/value to the first index.
|
boolean |
moveToLast(float key)
A specific move method to move a given key/value to the last index.
|
float |
pollFirstFloatKey()
A method to get and remove the first Key of a Map.
|
float |
pollLastFloatKey()
A method to get and remove the last Key of a Map.
|
double |
putAndMoveToFirst(float key,
double value)
A customized put method that allows you to insert into the first index.
|
double |
putAndMoveToLast(float key,
double value)
A customized put method that allows you to insert into the last index.
|
Float2DoubleSortedMap |
subMap(float fromKey,
float toKey)
A Type Specific SubMap method to reduce boxing/unboxing
|
Float2DoubleSortedMap |
tailMap(float fromKey)
A Type Specific TailMap method to reduce boxing/unboxing
|
DoubleCollection |
values() |
addTo, computeDouble, computeDoubleIfAbsent, computeDoubleIfPresent, containsKey, containsKey, containsValue, containsValue, get, getDouble, getOrDefault, mergeAllDouble, mergeDouble, put, putIfAbsent, remFloat, remFloatOrDefault, remove, remove, remove, replace, replace, sizeaddToAll, entrySet, equals, getDefaultReturnValue, getOrDefault, hashCode, putAll, putAll, putAll, putAllIfAbsent, replaceDoubles, replaceDoubles, setDefaultReturnValuefirstKey, headMap, lastKey, subMap, tailMapaddTo, addToAll, compute, computeDouble, computeDoubleIfAbsent, computeDoubleIfPresent, computeIfAbsent, computeIfPresent, containsKey, containsKey, containsValue, containsValue, entrySet, forEach, get, getDefaultReturnValue, getDouble, getOrDefault, getOrDefault, merge, mergeAllDouble, mergeDouble, put, put, putAll, putAll, putAll, putAllIfAbsent, putIfAbsent, putIfAbsent, remFloat, remFloatOrDefault, remove, remove, remove, replace, replace, replace, replace, replaceAll, replaceDoubles, replaceDoubles, setDefaultReturnValuepublic Float2DoubleLinkedOpenHashMap()
public Float2DoubleLinkedOpenHashMap(int minCapacity)
minCapacity - the minimum capacity the HashMap is allowed to be.java.lang.IllegalStateException - if the minimum capacity is negativepublic Float2DoubleLinkedOpenHashMap(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 Float2DoubleLinkedOpenHashMap(java.lang.Float[] keys,
java.lang.Double[] 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 Float2DoubleLinkedOpenHashMap(java.lang.Float[] keys,
java.lang.Double[] 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 Float2DoubleLinkedOpenHashMap(float[] keys,
double[] 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 Float2DoubleLinkedOpenHashMap(float[] keys,
double[] 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 Float2DoubleLinkedOpenHashMap(java.util.Map<? extends java.lang.Float,? extends java.lang.Double> map)
map - the values that should be present in the mappublic Float2DoubleLinkedOpenHashMap(java.util.Map<? extends java.lang.Float,? extends java.lang.Double> 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 Float2DoubleLinkedOpenHashMap(Float2DoubleMap map)
map - the values that should be present in the mappublic Float2DoubleLinkedOpenHashMap(Float2DoubleMap 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 double putAndMoveToFirst(float key,
double value)
Float2DoubleSortedMapputAndMoveToFirst in interface Float2DoubleSortedMapkey - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public double putAndMoveToLast(float key,
double value)
Float2DoubleSortedMapputAndMoveToLast in interface Float2DoubleSortedMapkey - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public boolean moveToFirst(float key)
Float2DoubleSortedMapmoveToFirst in interface Float2DoubleSortedMapkey - that should be moved to the first indexpublic boolean moveToLast(float key)
Float2DoubleSortedMapmoveToLast in interface Float2DoubleSortedMapkey - that should be moved to the first lastpublic double getAndMoveToFirst(float key)
Float2DoubleSortedMapgetAndMoveToFirst in interface Float2DoubleSortedMapkey - that is searched forpublic double getAndMoveToLast(float key)
Float2DoubleSortedMapgetAndMoveToLast in interface Float2DoubleSortedMapkey - that is searched forpublic FloatComparator comparator()
comparator in interface java.util.SortedMap<java.lang.Float,java.lang.Double>comparator in interface Float2DoubleSortedMappublic Float2DoubleSortedMap subMap(float fromKey, float toKey)
Float2DoubleSortedMapsubMap in interface Float2DoubleSortedMapfromKey - where the submap should starttoKey - where the subMap should endpublic Float2DoubleSortedMap headMap(float toKey)
Float2DoubleSortedMapheadMap in interface Float2DoubleSortedMaptoKey - where the headMap should endpublic Float2DoubleSortedMap tailMap(float fromKey)
Float2DoubleSortedMaptailMap in interface Float2DoubleSortedMapfromKey - where the TailMap should startpublic float firstFloatKey()
Float2DoubleSortedMapfirstFloatKey in interface Float2DoubleSortedMappublic float pollFirstFloatKey()
Float2DoubleSortedMappollFirstFloatKey in interface Float2DoubleSortedMappublic float lastFloatKey()
Float2DoubleSortedMaplastFloatKey in interface Float2DoubleSortedMappublic float pollLastFloatKey()
Float2DoubleSortedMappollLastFloatKey in interface Float2DoubleSortedMappublic double firstDoubleValue()
Float2DoubleSortedMapfirstDoubleValue in interface Float2DoubleSortedMappublic double lastDoubleValue()
Float2DoubleSortedMaplastDoubleValue in interface Float2DoubleSortedMappublic ObjectSet<Float2DoubleMap.Entry> float2DoubleEntrySet()
Float2DoubleMapfloat2DoubleEntrySet in interface Float2DoubleMapfloat2DoubleEntrySet in class Float2DoubleOpenHashMappublic FloatSet keySet()
keySet in interface java.util.Map<java.lang.Float,java.lang.Double>keySet in interface java.util.SortedMap<java.lang.Float,java.lang.Double>keySet in interface Float2DoubleMapkeySet in interface Float2DoubleSortedMapkeySet in class Float2DoubleOpenHashMappublic DoubleCollection values()
values in interface java.util.Map<java.lang.Float,java.lang.Double>values in interface java.util.SortedMap<java.lang.Float,java.lang.Double>values in interface Float2DoubleMapvalues in interface Float2DoubleSortedMapvalues in class Float2DoubleOpenHashMappublic void forEach(FloatDoubleConsumer action)
Float2DoubleMapforEach in interface Float2DoubleMapforEach in class Float2DoubleOpenHashMapaction - processor of the values that are iterator overpublic void clear()
clear in interface java.util.Map<java.lang.Float,java.lang.Double>clear in class Float2DoubleOpenHashMap