public class Float2FloatLinkedOpenCustomHashMap extends Float2FloatOpenCustomHashMap 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 |
|---|
Float2FloatLinkedOpenCustomHashMap(float[] keys,
float[] values,
float loadFactor,
FloatStrategy strategy)
Helper constructor that allow to create a map from unboxed values
|
Float2FloatLinkedOpenCustomHashMap(java.lang.Float[] keys,
java.lang.Float[] values,
float loadFactor,
FloatStrategy strategy)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Float2FloatLinkedOpenCustomHashMap(float[] keys,
float[] values,
FloatStrategy strategy)
Helper constructor that allow to create a map from unboxed values
|
Float2FloatLinkedOpenCustomHashMap(java.lang.Float[] keys,
java.lang.Float[] values,
FloatStrategy strategy)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Float2FloatLinkedOpenCustomHashMap(Float2FloatMap map,
float loadFactor,
FloatStrategy strategy)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Float2FloatLinkedOpenCustomHashMap(Float2FloatMap map,
FloatStrategy strategy)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Float2FloatLinkedOpenCustomHashMap(FloatStrategy strategy)
Default Constructor
|
Float2FloatLinkedOpenCustomHashMap(int minCapacity,
float loadFactor,
FloatStrategy strategy)
Constructor that defines the minimum capacity and load factor
|
Float2FloatLinkedOpenCustomHashMap(int minCapacity,
FloatStrategy strategy)
Constructor that defines the minimum capacity
|
Float2FloatLinkedOpenCustomHashMap(java.util.Map<? extends java.lang.Float,? extends java.lang.Float> map,
float loadFactor,
FloatStrategy strategy)
A Helper constructor that allows to create a Map with exactly the same values as the provided map.
|
Float2FloatLinkedOpenCustomHashMap(java.util.Map<? extends java.lang.Float,? extends java.lang.Float> map,
FloatStrategy strategy)
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
|
Float2FloatLinkedOpenCustomHashMap |
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, containsValue, containsValue, 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, applyAsFloat, builder, compute, computeFloat, computeFloatIfAbsent, computeFloatIfPresent, computeIfAbsent, computeIfPresent, containsKey, containsKey, containsValue, containsValue, entrySet, forEach, get, get, getDefaultReturnValue, getOrDefault, getOrDefault, merge, mergeAllFloat, mergeFloat, put, put, put, put, putAll, putAll, putAll, putAll, putAll, putAllIfAbsent, putIfAbsent, putIfAbsent, remove, remove, remove, remove, removeOrDefault, replace, replace, replace, replace, replaceAll, replaceFloats, replaceFloats, setDefaultReturnValue, subFrom, supplyFloatIfAbsentandThen, compose, identityclearAndTrim, trimpublic Float2FloatLinkedOpenCustomHashMap(FloatStrategy strategy)
strategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nullpublic Float2FloatLinkedOpenCustomHashMap(int minCapacity,
FloatStrategy strategy)
minCapacity - the minimum capacity the HashMap is allowed to be.strategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nulljava.lang.IllegalStateException - if the minimum capacity is negativepublic Float2FloatLinkedOpenCustomHashMap(int minCapacity,
float loadFactor,
FloatStrategy strategy)
minCapacity - the minimum capacity the HashMap is allowed to be.loadFactor - the percentage of how full the backing array can be before they resizestrategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nulljava.lang.IllegalStateException - if the minimum capacity is negativejava.lang.IllegalStateException - if the loadfactor is either below/equal to 0 or above/equal to 1public Float2FloatLinkedOpenCustomHashMap(java.lang.Float[] keys,
java.lang.Float[] values,
FloatStrategy strategy)
keys - the keys that should be put into the mapvalues - the values that should be put into the map.strategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nulljava.lang.IllegalStateException - if the keys and values do not match in lenghtpublic Float2FloatLinkedOpenCustomHashMap(java.lang.Float[] keys,
java.lang.Float[] values,
float loadFactor,
FloatStrategy strategy)
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 resizestrategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nulljava.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 Float2FloatLinkedOpenCustomHashMap(float[] keys,
float[] values,
FloatStrategy strategy)
keys - the keys that should be put into the mapvalues - the values that should be put into the map.strategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nulljava.lang.IllegalStateException - if the keys and values do not match in lenghtpublic Float2FloatLinkedOpenCustomHashMap(float[] keys,
float[] values,
float loadFactor,
FloatStrategy strategy)
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 resizestrategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nulljava.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 Float2FloatLinkedOpenCustomHashMap(java.util.Map<? extends java.lang.Float,? extends java.lang.Float> map,
FloatStrategy strategy)
map - the values that should be present in the mapstrategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nullpublic Float2FloatLinkedOpenCustomHashMap(java.util.Map<? extends java.lang.Float,? extends java.lang.Float> map,
float loadFactor,
FloatStrategy strategy)
map - the values that should be present in the maploadFactor - the percentage of how full the backing array can be before they resizestrategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nulljava.lang.IllegalStateException - if the loadfactor is either below/equal to 0 or above/equal to 1public Float2FloatLinkedOpenCustomHashMap(Float2FloatMap map, FloatStrategy strategy)
map - the values that should be present in the mapstrategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nullpublic Float2FloatLinkedOpenCustomHashMap(Float2FloatMap map, float loadFactor, FloatStrategy strategy)
map - the values that should be present in the maploadFactor - the percentage of how full the backing array can be before they resizestrategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nulljava.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 Float2FloatLinkedOpenCustomHashMap copy()
Float2FloatMapcopy in interface Float2FloatMapcopy in interface Float2FloatOrderedMapcopy in class Float2FloatOpenCustomHashMappublic 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 Float2FloatOpenCustomHashMappublic FloatOrderedSet keySet()
keySet in interface java.util.Map<java.lang.Float,java.lang.Float>keySet in interface Float2FloatMapkeySet in interface Float2FloatOrderedMapkeySet in class Float2FloatOpenCustomHashMappublic FloatCollection values()
values in interface java.util.Map<java.lang.Float,java.lang.Float>values in interface Float2FloatMapvalues in class Float2FloatOpenCustomHashMappublic void forEach(FloatFloatConsumer action)
Float2FloatMapforEach in interface Float2FloatMapforEach in class Float2FloatOpenCustomHashMapaction - 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 Float2FloatOpenCustomHashMappublic void clearAndTrim(int size)
ITrimmableclearAndTrim in interface ITrimmableclearAndTrim in class Float2FloatOpenCustomHashMapsize - the amount of elements that should be allowed