public class Float2FloatLinkedOpenHashMap extends Float2FloatOpenHashMap implements Float2FloatSortedMap
AbstractFloat2FloatMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Float2FloatSortedMap.FastSortedSetFloat2FloatMap.Entry, Float2FloatMap.FastEntrySet| Constructor and Description |
|---|
Float2FloatLinkedOpenHashMap()
Default Constructor
|
Float2FloatLinkedOpenHashMap(float[] keys,
float[] values)
Helper constructor that allow to create a map from unboxed values
|
Float2FloatLinkedOpenHashMap(java.lang.Float[] keys,
java.lang.Float[] values)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Float2FloatLinkedOpenHashMap(float[] keys,
float[] values,
float loadFactor)
Helper constructor that allow to create a map from unboxed values
|
Float2FloatLinkedOpenHashMap(java.lang.Float[] keys,
java.lang.Float[] values,
float loadFactor)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Float2FloatLinkedOpenHashMap(Float2FloatMap map)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Float2FloatLinkedOpenHashMap(Float2FloatMap map,
float loadFactor)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Float2FloatLinkedOpenHashMap(int minCapacity)
Constructor that defines the minimum capacity
|
Float2FloatLinkedOpenHashMap(int minCapacity,
float loadFactor)
Constructor that defines the minimum capacity and load factor
|
Float2FloatLinkedOpenHashMap(java.util.Map<? extends java.lang.Float,? extends java.lang.Float> map)
A Helper constructor that allows to create a Map with exactly the same values as the provided map.
|
Float2FloatLinkedOpenHashMap(java.util.Map<? extends java.lang.Float,? extends java.lang.Float> 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() |
float |
firstFloatKey()
A method to get the first Key of a Map.
|
float |
firstFloatValue()
A method to get the first Value of a Map.
|
ObjectSet<Float2FloatMap.Entry> |
float2FloatEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
void |
forEach(FloatFloatConsumer action)
Type Specific forEach method to reduce boxing/unboxing
|
float |
getAndMoveToFirst(float key)
A Specific get method that allows to move teh given key/value int the first index.
|
float |
getAndMoveToLast(float key)
A Specific get method that allows to move teh given key/value int the last index.
|
Float2FloatSortedMap |
headMap(float toKey)
A Type Specific HeadMap method to reduce boxing/unboxing
|
FloatSet |
keySet() |
float |
lastFloatKey()
A method to get the last Key of a Map.
|
float |
lastFloatValue()
A method to get the last Value 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.
|
float |
putAndMoveToFirst(float key,
float value)
A customized put method that allows you to insert into the first index.
|
float |
putAndMoveToLast(float key,
float value)
A customized put method that allows you to insert into the last index.
|
Float2FloatSortedMap |
subMap(float fromKey,
float toKey)
A Type Specific SubMap method to reduce boxing/unboxing
|
Float2FloatSortedMap |
tailMap(float fromKey)
A Type Specific TailMap method to reduce boxing/unboxing
|
FloatCollection |
values() |
addTo, computeFloat, computeFloatIfAbsent, computeFloatIfPresent, containsKey, containsKey, containsValue, containsValue, get, getFloat, getOrDefault, mergeAllFloat, mergeFloat, put, putIfAbsent, remFloat, remFloatOrDefault, remove, remove, remove, replace, replace, sizeaddToAll, entrySet, equals, getDefaultReturnValue, getOrDefault, hashCode, putAll, putAll, putAll, putAllIfAbsent, replaceFloats, replaceFloats, setDefaultReturnValuefirstKey, headMap, lastKey, subMap, tailMapaddTo, addToAll, compute, computeFloat, computeFloatIfAbsent, computeFloatIfPresent, computeIfAbsent, computeIfPresent, containsKey, containsKey, containsValue, containsValue, entrySet, forEach, get, getDefaultReturnValue, getFloat, getOrDefault, getOrDefault, merge, mergeAllFloat, mergeFloat, put, put, putAll, putAll, putAll, putAllIfAbsent, putIfAbsent, putIfAbsent, remFloat, remFloatOrDefault, remove, remove, remove, replace, replace, replace, replace, replaceAll, replaceFloats, replaceFloats, setDefaultReturnValuepublic Float2FloatLinkedOpenHashMap()
public Float2FloatLinkedOpenHashMap(int minCapacity)
minCapacity - the minimum capacity the HashMap is allowed to be.java.lang.IllegalStateException - if the minimum capacity is negativepublic Float2FloatLinkedOpenHashMap(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 Float2FloatLinkedOpenHashMap(java.lang.Float[] keys,
java.lang.Float[] 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 Float2FloatLinkedOpenHashMap(java.lang.Float[] keys,
java.lang.Float[] 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 Float2FloatLinkedOpenHashMap(float[] keys,
float[] 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 Float2FloatLinkedOpenHashMap(float[] keys,
float[] 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 Float2FloatLinkedOpenHashMap(java.util.Map<? extends java.lang.Float,? extends java.lang.Float> map)
map - the values that should be present in the mappublic Float2FloatLinkedOpenHashMap(java.util.Map<? extends java.lang.Float,? extends java.lang.Float> 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 Float2FloatLinkedOpenHashMap(Float2FloatMap map)
map - the values that should be present in the mappublic Float2FloatLinkedOpenHashMap(Float2FloatMap 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 float putAndMoveToFirst(float key,
float value)
Float2FloatSortedMapputAndMoveToFirst in interface Float2FloatSortedMapkey - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public float putAndMoveToLast(float key,
float value)
Float2FloatSortedMapputAndMoveToLast in interface Float2FloatSortedMapkey - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public boolean moveToFirst(float key)
Float2FloatSortedMapmoveToFirst in interface Float2FloatSortedMapkey - that should be moved to the first indexpublic boolean moveToLast(float key)
Float2FloatSortedMapmoveToLast in interface Float2FloatSortedMapkey - that should be moved to the first lastpublic float getAndMoveToFirst(float key)
Float2FloatSortedMapgetAndMoveToFirst in interface Float2FloatSortedMapkey - that is searched forpublic float getAndMoveToLast(float key)
Float2FloatSortedMapgetAndMoveToLast in interface Float2FloatSortedMapkey - that is searched forpublic FloatComparator comparator()
comparator in interface java.util.SortedMap<java.lang.Float,java.lang.Float>comparator in interface Float2FloatSortedMappublic Float2FloatSortedMap subMap(float fromKey, float toKey)
Float2FloatSortedMapsubMap in interface Float2FloatSortedMapfromKey - where the submap should starttoKey - where the subMap should endpublic Float2FloatSortedMap headMap(float toKey)
Float2FloatSortedMapheadMap in interface Float2FloatSortedMaptoKey - where the headMap should endpublic Float2FloatSortedMap tailMap(float fromKey)
Float2FloatSortedMaptailMap in interface Float2FloatSortedMapfromKey - where the TailMap should startpublic float firstFloatKey()
Float2FloatSortedMapfirstFloatKey in interface Float2FloatSortedMappublic float pollFirstFloatKey()
Float2FloatSortedMappollFirstFloatKey in interface Float2FloatSortedMappublic float lastFloatKey()
Float2FloatSortedMaplastFloatKey in interface Float2FloatSortedMappublic float pollLastFloatKey()
Float2FloatSortedMappollLastFloatKey in interface Float2FloatSortedMappublic float firstFloatValue()
Float2FloatSortedMapfirstFloatValue in interface Float2FloatSortedMappublic float lastFloatValue()
Float2FloatSortedMaplastFloatValue in interface Float2FloatSortedMappublic ObjectSet<Float2FloatMap.Entry> float2FloatEntrySet()
Float2FloatMapfloat2FloatEntrySet in interface Float2FloatMapfloat2FloatEntrySet in class Float2FloatOpenHashMappublic FloatSet keySet()
keySet in interface java.util.Map<java.lang.Float,java.lang.Float>keySet in interface java.util.SortedMap<java.lang.Float,java.lang.Float>keySet in interface Float2FloatMapkeySet in interface Float2FloatSortedMapkeySet in class Float2FloatOpenHashMappublic FloatCollection values()
values in interface java.util.Map<java.lang.Float,java.lang.Float>values in interface java.util.SortedMap<java.lang.Float,java.lang.Float>values in interface Float2FloatMapvalues in interface Float2FloatSortedMapvalues in class Float2FloatOpenHashMappublic void forEach(FloatFloatConsumer action)
Float2FloatMapforEach in interface Float2FloatMapforEach in class Float2FloatOpenHashMapaction - processor of the values that are iterator overpublic void clear()
clear in interface java.util.Map<java.lang.Float,java.lang.Float>clear in class Float2FloatOpenHashMap