public class Float2FloatLinkedOpenHashMap extends Float2FloatOpenHashMap implements Float2FloatOrderedMap
AbstractFloat2FloatMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Float2FloatOrderedMap.FastOrderedSetFloat2FloatMap.BuilderCache, Float2FloatMap.Entry, Float2FloatMap.FastEntrySet, Float2FloatMap.MapBuilder| 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() |
void |
clearAndTrim(int size)
Trims the collection down to the requested size and clears all elements while doing so
|
boolean |
containsValue(float value)
Type Specific method to reduce boxing/unboxing of values
|
boolean |
containsValue(java.lang.Object value)
Deprecated.
|
Float2FloatLinkedOpenHashMap |
copy()
A Function that does a shallow clone of the Map itself.
|
float |
firstFloatKey()
A method to get the first Key of a Map.
|
float |
firstFloatValue()
A method to get the first Value of a Map.
|
ObjectOrderedSet<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.
|
FloatOrderedSet |
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.
|
FloatCollection |
values() |
addTo, computeFloat, computeFloatIfAbsent, computeFloatIfPresent, containsKey, containsKey, get, get, getOrDefault, mergeAllFloat, mergeFloat, put, putIfAbsent, remove, remove, remove, remove, removeOrDefault, replace, replace, size, subFrom, supplyFloatIfAbsent, trimaddToAll, entrySet, equals, getDefaultReturnValue, getOrDefault, hashCode, put, putAll, putAll, putAll, putAll, putAllIfAbsent, replaceFloats, replaceFloats, setDefaultReturnValuesynchronize, synchronize, unmodifiableaddTo, addToAll, builder, compute, computeFloat, computeFloatIfAbsent, computeFloatIfPresent, computeIfAbsent, computeIfPresent, containsKey, containsKey, entrySet, forEach, get, get, getDefaultReturnValue, getOrDefault, getOrDefault, merge, mergeAllFloat, mergeFloat, put, put, putAll, putAll, putAll, putAll, putAll, putAllIfAbsent, putIfAbsent, putIfAbsent, remove, remove, remove, remove, removeOrDefault, replace, replace, replace, replace, replaceAll, replaceFloats, replaceFloats, setDefaultReturnValue, subFrom, supplyFloatIfAbsentclearAndTrim, trimpublic 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)
Float2FloatOrderedMapputAndMoveToFirst in interface Float2FloatOrderedMapkey - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public float putAndMoveToLast(float key,
float value)
Float2FloatOrderedMapputAndMoveToLast in interface Float2FloatOrderedMapkey - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public boolean moveToFirst(float key)
Float2FloatOrderedMapmoveToFirst in interface Float2FloatOrderedMapkey - that should be moved to the first indexpublic boolean moveToLast(float key)
Float2FloatOrderedMapmoveToLast in interface Float2FloatOrderedMapkey - that should be moved to the first lastpublic float getAndMoveToFirst(float key)
Float2FloatOrderedMapgetAndMoveToFirst in interface Float2FloatOrderedMapkey - that is searched forpublic float getAndMoveToLast(float key)
Float2FloatOrderedMapgetAndMoveToLast in interface Float2FloatOrderedMapkey - that is searched forpublic boolean containsValue(float value)
Float2FloatMapcontainsValue in interface Float2FloatMapcontainsValue in class Float2FloatOpenHashMapvalue - element that is searched for@Deprecated public boolean containsValue(java.lang.Object value)
containsValue in interface java.util.Map<java.lang.Float,java.lang.Float>containsValue in interface Float2FloatMapcontainsValue in class Float2FloatOpenHashMapvalue - that is searched for.Map.containsValue(Object)public Float2FloatLinkedOpenHashMap copy()
Float2FloatMapcopy in interface Float2FloatMapcopy in interface Float2FloatOrderedMapcopy in class Float2FloatOpenHashMappublic float firstFloatKey()
Float2FloatOrderedMapfirstFloatKey in interface Float2FloatOrderedMappublic float pollFirstFloatKey()
Float2FloatOrderedMappollFirstFloatKey in interface Float2FloatOrderedMappublic float lastFloatKey()
Float2FloatOrderedMaplastFloatKey in interface Float2FloatOrderedMappublic float pollLastFloatKey()
Float2FloatOrderedMappollLastFloatKey in interface Float2FloatOrderedMappublic float firstFloatValue()
Float2FloatOrderedMapfirstFloatValue in interface Float2FloatOrderedMappublic float lastFloatValue()
Float2FloatOrderedMaplastFloatValue in interface Float2FloatOrderedMappublic ObjectOrderedSet<Float2FloatMap.Entry> float2FloatEntrySet()
Float2FloatMapfloat2FloatEntrySet in interface Float2FloatMapfloat2FloatEntrySet in interface Float2FloatOrderedMapfloat2FloatEntrySet in class Float2FloatOpenHashMappublic FloatOrderedSet keySet()
keySet in interface java.util.Map<java.lang.Float,java.lang.Float>keySet in interface Float2FloatMapkeySet in interface Float2FloatOrderedMapkeySet in class Float2FloatOpenHashMappublic FloatCollection values()
values in interface java.util.Map<java.lang.Float,java.lang.Float>values in interface Float2FloatMapvalues 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 Float2FloatOpenHashMappublic void clearAndTrim(int size)
ITrimmableclearAndTrim in interface ITrimmableclearAndTrim in class Float2FloatOpenHashMapsize - the amount of elements that should be allowed