V - the keyType of elements maintained by this Collectionpublic class Float2ObjectLinkedOpenCustomHashMap<V> extends Float2ObjectOpenCustomHashMap<V> implements Float2ObjectOrderedMap<V>
AbstractFloat2ObjectMap.BasicEntry<V>java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Float2ObjectOrderedMap.FastOrderedSet<V>Float2ObjectMap.BuilderCache<V>, Float2ObjectMap.Entry<V>, Float2ObjectMap.FastEntrySet<V>, Float2ObjectMap.MapBuilder| Constructor and Description |
|---|
Float2ObjectLinkedOpenCustomHashMap(float[] keys,
V[] values,
float loadFactor,
FloatStrategy strategy)
Helper constructor that allow to create a map from unboxed values
|
Float2ObjectLinkedOpenCustomHashMap(java.lang.Float[] keys,
V[] values,
float loadFactor,
FloatStrategy strategy)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Float2ObjectLinkedOpenCustomHashMap(float[] keys,
V[] values,
FloatStrategy strategy)
Helper constructor that allow to create a map from unboxed values
|
Float2ObjectLinkedOpenCustomHashMap(java.lang.Float[] keys,
V[] values,
FloatStrategy strategy)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Float2ObjectLinkedOpenCustomHashMap(Float2ObjectMap<V> 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.
|
Float2ObjectLinkedOpenCustomHashMap(Float2ObjectMap<V> map,
FloatStrategy strategy)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Float2ObjectLinkedOpenCustomHashMap(FloatStrategy strategy)
Default Constructor
|
Float2ObjectLinkedOpenCustomHashMap(int minCapacity,
float loadFactor,
FloatStrategy strategy)
Constructor that defines the minimum capacity and load factor
|
Float2ObjectLinkedOpenCustomHashMap(int minCapacity,
FloatStrategy strategy)
Constructor that defines the minimum capacity
|
Float2ObjectLinkedOpenCustomHashMap(java.util.Map<? extends java.lang.Float,? extends V> map,
float loadFactor,
FloatStrategy strategy)
A Helper constructor that allows to create a Map with exactly the same values as the provided map.
|
Float2ObjectLinkedOpenCustomHashMap(java.util.Map<? extends java.lang.Float,? extends V> 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
|
Float2ObjectLinkedOpenCustomHashMap<V> |
copy()
A Function that does a shallow clone of the Map itself.
|
float |
firstFloatKey()
A method to get the first Key of a Map.
|
V |
firstValue()
A method to get the first Value of a Map.
|
ObjectOrderedSet<Float2ObjectMap.Entry<V>> |
float2ObjectEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
void |
forEach(FloatObjectConsumer<V> action)
Type Specific forEach method to reduce boxing/unboxing
|
V |
getAndMoveToFirst(float key)
A Specific get method that allows to move teh given key/value int the first index.
|
V |
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.
|
V |
lastValue()
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.
|
V |
putAndMoveToFirst(float key,
V value)
A customized put method that allows you to insert into the first index.
|
V |
putAndMoveToLast(float key,
V value)
A customized put method that allows you to insert into the last index.
|
ObjectCollection<V> |
values() |
compute, computeIfAbsent, computeIfPresent, containsKey, containsKey, containsValue, get, get, getOrDefault, merge, mergeAll, put, putIfAbsent, remove, remove, remove, remove, removeOrDefault, replace, replace, size, supplyIfAbsent, trimentrySet, equals, getDefaultReturnValue, getOrDefault, hashCode, put, putAll, putAll, putAll, putAll, putAllIfAbsent, replaceObjects, replaceObjects, setDefaultReturnValuesynchronize, synchronize, unmodifiableapply, builder, compute, compute, computeIfAbsent, computeIfAbsent, computeIfPresent, computeIfPresent, containsKey, containsKey, entrySet, forEach, get, get, getDefaultReturnValue, getOrDefault, getOrDefault, merge, merge, mergeAll, put, put, put, put, putAll, putAll, putAll, putAll, putAll, putAllIfAbsent, putIfAbsent, putIfAbsent, remove, remove, remove, remove, removeOrDefault, replace, replace, replace, replace, replaceAll, replaceObjects, replaceObjects, setDefaultReturnValue, supplyIfAbsentcontainsValue, equals, hashCode, isEmpty, putAll, sizeclearAndTrim, trimpublic Float2ObjectLinkedOpenCustomHashMap(FloatStrategy strategy)
strategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nullpublic Float2ObjectLinkedOpenCustomHashMap(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 Float2ObjectLinkedOpenCustomHashMap(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 Float2ObjectLinkedOpenCustomHashMap(java.lang.Float[] keys,
V[] 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 Float2ObjectLinkedOpenCustomHashMap(java.lang.Float[] keys,
V[] 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 Float2ObjectLinkedOpenCustomHashMap(float[] keys,
V[] 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 Float2ObjectLinkedOpenCustomHashMap(float[] keys,
V[] 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 Float2ObjectLinkedOpenCustomHashMap(java.util.Map<? extends java.lang.Float,? extends V> 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 Float2ObjectLinkedOpenCustomHashMap(java.util.Map<? extends java.lang.Float,? extends V> 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 Float2ObjectLinkedOpenCustomHashMap(Float2ObjectMap<V> 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 Float2ObjectLinkedOpenCustomHashMap(Float2ObjectMap<V> 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 V putAndMoveToFirst(float key, V value)
Float2ObjectOrderedMapputAndMoveToFirst in interface Float2ObjectOrderedMap<V>key - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public V putAndMoveToLast(float key, V value)
Float2ObjectOrderedMapputAndMoveToLast in interface Float2ObjectOrderedMap<V>key - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public boolean moveToFirst(float key)
Float2ObjectOrderedMapmoveToFirst in interface Float2ObjectOrderedMap<V>key - that should be moved to the first indexpublic boolean moveToLast(float key)
Float2ObjectOrderedMapmoveToLast in interface Float2ObjectOrderedMap<V>key - that should be moved to the first lastpublic V getAndMoveToFirst(float key)
Float2ObjectOrderedMapgetAndMoveToFirst in interface Float2ObjectOrderedMap<V>key - that is searched forpublic V getAndMoveToLast(float key)
Float2ObjectOrderedMapgetAndMoveToLast in interface Float2ObjectOrderedMap<V>key - that is searched forpublic Float2ObjectLinkedOpenCustomHashMap<V> copy()
Float2ObjectMapcopy in interface Float2ObjectMap<V>copy in interface Float2ObjectOrderedMap<V>copy in class Float2ObjectOpenCustomHashMap<V>public float firstFloatKey()
Float2ObjectOrderedMapfirstFloatKey in interface Float2ObjectOrderedMap<V>public float pollFirstFloatKey()
Float2ObjectOrderedMappollFirstFloatKey in interface Float2ObjectOrderedMap<V>public float lastFloatKey()
Float2ObjectOrderedMaplastFloatKey in interface Float2ObjectOrderedMap<V>public float pollLastFloatKey()
Float2ObjectOrderedMappollLastFloatKey in interface Float2ObjectOrderedMap<V>public V firstValue()
Float2ObjectOrderedMapfirstValue in interface Float2ObjectOrderedMap<V>public V lastValue()
Float2ObjectOrderedMaplastValue in interface Float2ObjectOrderedMap<V>public ObjectOrderedSet<Float2ObjectMap.Entry<V>> float2ObjectEntrySet()
Float2ObjectMapfloat2ObjectEntrySet in interface Float2ObjectMap<V>float2ObjectEntrySet in interface Float2ObjectOrderedMap<V>float2ObjectEntrySet in class Float2ObjectOpenCustomHashMap<V>public FloatOrderedSet keySet()
keySet in interface java.util.Map<java.lang.Float,V>keySet in interface Float2ObjectMap<V>keySet in interface Float2ObjectOrderedMap<V>keySet in class Float2ObjectOpenCustomHashMap<V>public ObjectCollection<V> values()
values in interface java.util.Map<java.lang.Float,V>values in interface Float2ObjectMap<V>values in class Float2ObjectOpenCustomHashMap<V>public void forEach(FloatObjectConsumer<V> action)
Float2ObjectMapforEach in interface Float2ObjectMap<V>forEach in class Float2ObjectOpenCustomHashMap<V>action - processor of the values that are iterator overpublic void clear()
clear in interface java.util.Map<java.lang.Float,V>clear in class Float2ObjectOpenCustomHashMap<V>public void clearAndTrim(int size)
ITrimmableclearAndTrim in interface ITrimmableclearAndTrim in class Float2ObjectOpenCustomHashMap<V>size - the amount of elements that should be allowed