public class Float2IntLinkedOpenCustomHashMap extends Float2IntOpenCustomHashMap implements Float2IntOrderedMap
AbstractFloat2IntMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Float2IntOrderedMap.FastOrderedSetFloat2IntMap.BuilderCache, Float2IntMap.Entry, Float2IntMap.FastEntrySet, Float2IntMap.MapBuilder| Constructor and Description |
|---|
Float2IntLinkedOpenCustomHashMap(float[] keys,
int[] values,
float loadFactor,
FloatStrategy strategy)
Helper constructor that allow to create a map from unboxed values
|
Float2IntLinkedOpenCustomHashMap(float[] keys,
int[] values,
FloatStrategy strategy)
Helper constructor that allow to create a map from unboxed values
|
Float2IntLinkedOpenCustomHashMap(java.lang.Float[] keys,
java.lang.Integer[] values,
float loadFactor,
FloatStrategy strategy)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Float2IntLinkedOpenCustomHashMap(java.lang.Float[] keys,
java.lang.Integer[] values,
FloatStrategy strategy)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Float2IntLinkedOpenCustomHashMap(Float2IntMap 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.
|
Float2IntLinkedOpenCustomHashMap(Float2IntMap map,
FloatStrategy strategy)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Float2IntLinkedOpenCustomHashMap(FloatStrategy strategy)
Default Constructor
|
Float2IntLinkedOpenCustomHashMap(int minCapacity,
float loadFactor,
FloatStrategy strategy)
Constructor that defines the minimum capacity and load factor
|
Float2IntLinkedOpenCustomHashMap(int minCapacity,
FloatStrategy strategy)
Constructor that defines the minimum capacity
|
Float2IntLinkedOpenCustomHashMap(java.util.Map<? extends java.lang.Float,? extends java.lang.Integer> map,
float loadFactor,
FloatStrategy strategy)
A Helper constructor that allows to create a Map with exactly the same values as the provided map.
|
Float2IntLinkedOpenCustomHashMap(java.util.Map<? extends java.lang.Float,? extends java.lang.Integer> 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
|
Float2IntLinkedOpenCustomHashMap |
copy()
A Function that does a shallow clone of the Map itself.
|
float |
firstFloatKey()
A method to get the first Key of a Map.
|
int |
firstIntValue()
A method to get the first Value of a Map.
|
ObjectOrderedSet<Float2IntMap.Entry> |
float2IntEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
void |
forEach(FloatIntConsumer action)
Type Specific forEach method to reduce boxing/unboxing
|
int |
getAndMoveToFirst(float key)
A Specific get method that allows to move teh given key/value int the first index.
|
int |
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.
|
int |
lastIntValue()
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.
|
int |
putAndMoveToFirst(float key,
int value)
A customized put method that allows you to insert into the first index.
|
int |
putAndMoveToLast(float key,
int value)
A customized put method that allows you to insert into the last index.
|
IntCollection |
values() |
addTo, computeInt, computeIntIfAbsent, computeIntIfPresent, containsKey, containsKey, containsValue, containsValue, get, get, getOrDefault, mergeAllInt, mergeInt, put, putIfAbsent, remove, remove, remove, remove, removeOrDefault, replace, replace, size, subFrom, supplyIntIfAbsent, trimaddToAll, entrySet, equals, getDefaultReturnValue, getOrDefault, hashCode, put, putAll, putAll, putAll, putAll, putAllIfAbsent, replaceInts, replaceInts, setDefaultReturnValuesynchronize, synchronize, unmodifiableaddTo, addToAll, builder, compute, computeIfAbsent, computeIfPresent, computeInt, computeIntIfAbsent, computeIntIfPresent, containsKey, containsKey, containsValue, containsValue, entrySet, forEach, get, get, getDefaultReturnValue, getOrDefault, getOrDefault, merge, mergeAllInt, mergeInt, put, put, putAll, putAll, putAll, putAll, putAll, putAllIfAbsent, putIfAbsent, putIfAbsent, remove, remove, remove, remove, removeOrDefault, replace, replace, replace, replace, replaceAll, replaceInts, replaceInts, setDefaultReturnValue, subFrom, supplyIntIfAbsentclearAndTrim, trimpublic Float2IntLinkedOpenCustomHashMap(FloatStrategy strategy)
strategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nullpublic Float2IntLinkedOpenCustomHashMap(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 Float2IntLinkedOpenCustomHashMap(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 Float2IntLinkedOpenCustomHashMap(java.lang.Float[] keys,
java.lang.Integer[] 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 Float2IntLinkedOpenCustomHashMap(java.lang.Float[] keys,
java.lang.Integer[] 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 Float2IntLinkedOpenCustomHashMap(float[] keys,
int[] 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 Float2IntLinkedOpenCustomHashMap(float[] keys,
int[] 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 Float2IntLinkedOpenCustomHashMap(java.util.Map<? extends java.lang.Float,? extends java.lang.Integer> 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 Float2IntLinkedOpenCustomHashMap(java.util.Map<? extends java.lang.Float,? extends java.lang.Integer> 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 Float2IntLinkedOpenCustomHashMap(Float2IntMap 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 Float2IntLinkedOpenCustomHashMap(Float2IntMap 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 int putAndMoveToFirst(float key,
int value)
Float2IntOrderedMapputAndMoveToFirst in interface Float2IntOrderedMapkey - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public int putAndMoveToLast(float key,
int value)
Float2IntOrderedMapputAndMoveToLast in interface Float2IntOrderedMapkey - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public boolean moveToFirst(float key)
Float2IntOrderedMapmoveToFirst in interface Float2IntOrderedMapkey - that should be moved to the first indexpublic boolean moveToLast(float key)
Float2IntOrderedMapmoveToLast in interface Float2IntOrderedMapkey - that should be moved to the first lastpublic int getAndMoveToFirst(float key)
Float2IntOrderedMapgetAndMoveToFirst in interface Float2IntOrderedMapkey - that is searched forpublic int getAndMoveToLast(float key)
Float2IntOrderedMapgetAndMoveToLast in interface Float2IntOrderedMapkey - that is searched forpublic Float2IntLinkedOpenCustomHashMap copy()
Float2IntMapcopy in interface Float2IntMapcopy in interface Float2IntOrderedMapcopy in class Float2IntOpenCustomHashMappublic float firstFloatKey()
Float2IntOrderedMapfirstFloatKey in interface Float2IntOrderedMappublic float pollFirstFloatKey()
Float2IntOrderedMappollFirstFloatKey in interface Float2IntOrderedMappublic float lastFloatKey()
Float2IntOrderedMaplastFloatKey in interface Float2IntOrderedMappublic float pollLastFloatKey()
Float2IntOrderedMappollLastFloatKey in interface Float2IntOrderedMappublic int firstIntValue()
Float2IntOrderedMapfirstIntValue in interface Float2IntOrderedMappublic int lastIntValue()
Float2IntOrderedMaplastIntValue in interface Float2IntOrderedMappublic ObjectOrderedSet<Float2IntMap.Entry> float2IntEntrySet()
Float2IntMapfloat2IntEntrySet in interface Float2IntMapfloat2IntEntrySet in interface Float2IntOrderedMapfloat2IntEntrySet in class Float2IntOpenCustomHashMappublic FloatOrderedSet keySet()
keySet in interface java.util.Map<java.lang.Float,java.lang.Integer>keySet in interface Float2IntMapkeySet in interface Float2IntOrderedMapkeySet in class Float2IntOpenCustomHashMappublic IntCollection values()
values in interface java.util.Map<java.lang.Float,java.lang.Integer>values in interface Float2IntMapvalues in class Float2IntOpenCustomHashMappublic void forEach(FloatIntConsumer action)
Float2IntMapforEach in interface Float2IntMapforEach in class Float2IntOpenCustomHashMapaction - processor of the values that are iterator overpublic void clear()
clear in interface java.util.Map<java.lang.Float,java.lang.Integer>clear in class Float2IntOpenCustomHashMappublic void clearAndTrim(int size)
ITrimmableclearAndTrim in interface ITrimmableclearAndTrim in class Float2IntOpenCustomHashMapsize - the amount of elements that should be allowed