T - the type of elements maintained by this Collectionpublic class Object2FloatLinkedOpenCustomHashMap<T> extends Object2FloatOpenCustomHashMap<T> implements Object2FloatOrderedMap<T>
AbstractObject2FloatMap.BasicEntry<T>java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Object2FloatOrderedMap.FastOrderedSet<T>Object2FloatMap.BuilderCache<T>, Object2FloatMap.Entry<T>, Object2FloatMap.FastEntrySet<T>, Object2FloatMap.MapBuilder| Constructor and Description |
|---|
Object2FloatLinkedOpenCustomHashMap(int minCapacity,
float loadFactor,
ObjectStrategy<? super T> strategy)
Constructor that defines the minimum capacity and load factor
|
Object2FloatLinkedOpenCustomHashMap(int minCapacity,
ObjectStrategy<? super T> strategy)
Constructor that defines the minimum capacity
|
Object2FloatLinkedOpenCustomHashMap(java.util.Map<? extends T,? extends java.lang.Float> map,
float loadFactor,
ObjectStrategy<? super T> strategy)
A Helper constructor that allows to create a Map with exactly the same values as the provided map.
|
Object2FloatLinkedOpenCustomHashMap(java.util.Map<? extends T,? extends java.lang.Float> map,
ObjectStrategy<? super T> strategy)
A Helper constructor that allows to create a Map with exactly the same values as the provided map.
|
Object2FloatLinkedOpenCustomHashMap(Object2FloatMap<T> map,
float loadFactor,
ObjectStrategy<? super T> strategy)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Object2FloatLinkedOpenCustomHashMap(Object2FloatMap<T> map,
ObjectStrategy<? super T> strategy)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Object2FloatLinkedOpenCustomHashMap(ObjectStrategy<? super T> strategy)
Default Constructor
|
Object2FloatLinkedOpenCustomHashMap(T[] keys,
float[] values,
float loadFactor,
ObjectStrategy<? super T> strategy)
Helper constructor that allow to create a map from unboxed values
|
Object2FloatLinkedOpenCustomHashMap(T[] keys,
java.lang.Float[] values,
float loadFactor,
ObjectStrategy<? super T> strategy)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Object2FloatLinkedOpenCustomHashMap(T[] keys,
float[] values,
ObjectStrategy<? super T> strategy)
Helper constructor that allow to create a map from unboxed values
|
Object2FloatLinkedOpenCustomHashMap(T[] keys,
java.lang.Float[] values,
ObjectStrategy<? super T> strategy)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
| 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
|
Object2FloatLinkedOpenCustomHashMap<T> |
copy()
A Function that does a shallow clone of the Map itself.
|
float |
firstFloatValue()
A method to get the first Value of a Map.
|
T |
firstKey()
A method to get the first Key of a Map.
|
void |
forEach(ObjectFloatConsumer<T> action)
Type Specific forEach method to reduce boxing/unboxing
|
float |
getAndMoveToFirst(T key)
A Specific get method that allows to move teh given key/value int the first index.
|
float |
getAndMoveToLast(T key)
A Specific get method that allows to move teh given key/value int the last index.
|
ObjectOrderedSet<T> |
keySet() |
float |
lastFloatValue()
A method to get the last Value of a Map.
|
T |
lastKey()
A method to get the last Key of a Map.
|
boolean |
moveToFirst(T key)
A specific move method to move a given key/value to the first index.
|
boolean |
moveToLast(T key)
A specific move method to move a given key/value to the last index.
|
ObjectOrderedSet<Object2FloatMap.Entry<T>> |
object2FloatEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
T |
pollFirstKey()
A method to get and remove the first Key of a Map.
|
T |
pollLastKey()
A method to get and remove the last Key of a Map.
|
float |
putAndMoveToFirst(T key,
float value)
A customized put method that allows you to insert into the first index.
|
float |
putAndMoveToLast(T key,
float value)
A customized put method that allows you to insert into the last index.
|
FloatCollection |
values() |
addTo, computeFloat, computeFloatIfAbsent, computeFloatIfPresent, containsKey, containsValue, containsValue, get, getFloat, getOrDefault, mergeAllFloat, mergeFloat, put, putIfAbsent, rem, remOrDefault, remove, remove, remove, 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, containsValue, containsValue, entrySet, forEach, get, getDefaultReturnValue, getFloat, getOrDefault, getOrDefault, merge, mergeAllFloat, mergeFloat, put, put, putAll, putAll, putAll, putAll, putAll, putAllIfAbsent, putIfAbsent, putIfAbsent, rem, remOrDefault, remove, remove, remove, replace, replace, replace, replace, replaceAll, replaceFloats, replaceFloats, setDefaultReturnValue, subFrom, supplyFloatIfAbsentclearAndTrim, trimpublic Object2FloatLinkedOpenCustomHashMap(ObjectStrategy<? super T> strategy)
strategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nullpublic Object2FloatLinkedOpenCustomHashMap(int minCapacity,
ObjectStrategy<? super T> 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 Object2FloatLinkedOpenCustomHashMap(int minCapacity,
float loadFactor,
ObjectStrategy<? super T> 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 Object2FloatLinkedOpenCustomHashMap(T[] keys, java.lang.Float[] values, ObjectStrategy<? super T> 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 Object2FloatLinkedOpenCustomHashMap(T[] keys, java.lang.Float[] values, float loadFactor, ObjectStrategy<? super T> 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 Object2FloatLinkedOpenCustomHashMap(T[] keys, float[] values, ObjectStrategy<? super T> 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 Object2FloatLinkedOpenCustomHashMap(T[] keys, float[] values, float loadFactor, ObjectStrategy<? super T> 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 Object2FloatLinkedOpenCustomHashMap(java.util.Map<? extends T,? extends java.lang.Float> map, ObjectStrategy<? super T> strategy)
map - the values that should be present in the mapstrategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nullpublic Object2FloatLinkedOpenCustomHashMap(java.util.Map<? extends T,? extends java.lang.Float> map, float loadFactor, ObjectStrategy<? super T> 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 Object2FloatLinkedOpenCustomHashMap(Object2FloatMap<T> map, ObjectStrategy<? super T> strategy)
map - the values that should be present in the mapstrategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nullpublic Object2FloatLinkedOpenCustomHashMap(Object2FloatMap<T> map, float loadFactor, ObjectStrategy<? super T> 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(T key, float value)
Object2FloatOrderedMapputAndMoveToFirst in interface Object2FloatOrderedMap<T>key - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public float putAndMoveToLast(T key, float value)
Object2FloatOrderedMapputAndMoveToLast in interface Object2FloatOrderedMap<T>key - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public boolean moveToFirst(T key)
Object2FloatOrderedMapmoveToFirst in interface Object2FloatOrderedMap<T>key - that should be moved to the first indexpublic boolean moveToLast(T key)
Object2FloatOrderedMapmoveToLast in interface Object2FloatOrderedMap<T>key - that should be moved to the first lastpublic float getAndMoveToFirst(T key)
Object2FloatOrderedMapgetAndMoveToFirst in interface Object2FloatOrderedMap<T>key - that is searched forpublic float getAndMoveToLast(T key)
Object2FloatOrderedMapgetAndMoveToLast in interface Object2FloatOrderedMap<T>key - that is searched forpublic Object2FloatLinkedOpenCustomHashMap<T> copy()
Object2FloatMapcopy in interface Object2FloatMap<T>copy in interface Object2FloatOrderedMap<T>copy in class Object2FloatOpenCustomHashMap<T>public T firstKey()
Object2FloatOrderedMapfirstKey in interface Object2FloatOrderedMap<T>public T pollFirstKey()
Object2FloatOrderedMappollFirstKey in interface Object2FloatOrderedMap<T>public T lastKey()
Object2FloatOrderedMaplastKey in interface Object2FloatOrderedMap<T>public T pollLastKey()
Object2FloatOrderedMappollLastKey in interface Object2FloatOrderedMap<T>public float firstFloatValue()
Object2FloatOrderedMapfirstFloatValue in interface Object2FloatOrderedMap<T>public float lastFloatValue()
Object2FloatOrderedMaplastFloatValue in interface Object2FloatOrderedMap<T>public ObjectOrderedSet<Object2FloatMap.Entry<T>> object2FloatEntrySet()
Object2FloatMapobject2FloatEntrySet in interface Object2FloatMap<T>object2FloatEntrySet in interface Object2FloatOrderedMap<T>object2FloatEntrySet in class Object2FloatOpenCustomHashMap<T>public ObjectOrderedSet<T> keySet()
keySet in interface java.util.Map<T,java.lang.Float>keySet in interface Object2FloatMap<T>keySet in interface Object2FloatOrderedMap<T>keySet in class Object2FloatOpenCustomHashMap<T>public FloatCollection values()
values in interface java.util.Map<T,java.lang.Float>values in interface Object2FloatMap<T>values in class Object2FloatOpenCustomHashMap<T>public void forEach(ObjectFloatConsumer<T> action)
Object2FloatMapforEach in interface Object2FloatMap<T>forEach in class Object2FloatOpenCustomHashMap<T>action - processor of the values that are iterator overpublic void clear()
clear in interface java.util.Map<T,java.lang.Float>clear in class Object2FloatOpenCustomHashMap<T>public void clearAndTrim(int size)
ITrimmableclearAndTrim in interface ITrimmableclearAndTrim in class Object2FloatOpenCustomHashMap<T>size - the amount of elements that should be allowed