T - the type of elements maintained by this Collectionpublic class Object2FloatLinkedOpenHashMap<T> extends Object2FloatOpenHashMap<T> implements Object2FloatSortedMap<T>
AbstractObject2FloatMap.BasicEntry<T>java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Object2FloatSortedMap.FastSortedSet<T>Object2FloatMap.Entry<T>, Object2FloatMap.FastEntrySet<T>| Constructor and Description |
|---|
Object2FloatLinkedOpenHashMap()
Default Constructor
|
Object2FloatLinkedOpenHashMap(int minCapacity)
Constructor that defines the minimum capacity
|
Object2FloatLinkedOpenHashMap(int minCapacity,
float loadFactor)
Constructor that defines the minimum capacity and load factor
|
Object2FloatLinkedOpenHashMap(java.util.Map<? extends T,? extends java.lang.Float> map)
A Helper constructor that allows to create a Map with exactly the same values as the provided map.
|
Object2FloatLinkedOpenHashMap(java.util.Map<? extends T,? 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.
|
Object2FloatLinkedOpenHashMap(Object2FloatMap<T> map)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Object2FloatLinkedOpenHashMap(Object2FloatMap<T> map,
float loadFactor)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Object2FloatLinkedOpenHashMap(T[] keys,
float[] values)
Helper constructor that allow to create a map from unboxed values
|
Object2FloatLinkedOpenHashMap(T[] keys,
java.lang.Float[] values)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Object2FloatLinkedOpenHashMap(T[] keys,
float[] values,
float loadFactor)
Helper constructor that allow to create a map from unboxed values
|
Object2FloatLinkedOpenHashMap(T[] keys,
java.lang.Float[] values,
float loadFactor)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
java.util.Comparator<T> |
comparator() |
float |
firstFloatValue()
A method to get the first Value of a Map.
|
T |
firstKey() |
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.
|
Object2FloatSortedMap<T> |
headMap(T toKey) |
ObjectSet<T> |
keySet() |
float |
lastFloatValue()
A method to get the last Value of a Map.
|
T |
lastKey() |
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.
|
ObjectSet<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.
|
Object2FloatSortedMap<T> |
subMap(T fromKey,
T toKey) |
Object2FloatSortedMap<T> |
tailMap(T fromKey) |
FloatCollection |
values() |
addTo, computeFloat, computeFloatIfAbsent, computeFloatIfPresent, containsKey, containsValue, containsValue, get, getFloat, getOrDefault, mergeAllFloat, mergeFloat, put, putIfAbsent, rem, remOrDefault, remove, remove, remove, replace, replace, sizeaddToAll, entrySet, equals, getDefaultReturnValue, getOrDefault, hashCode, putAll, putAll, putAll, putAllIfAbsent, replaceFloats, replaceFloats, setDefaultReturnValueaddTo, addToAll, compute, computeFloat, computeFloatIfAbsent, computeFloatIfPresent, computeIfAbsent, computeIfPresent, containsValue, containsValue, entrySet, forEach, get, getDefaultReturnValue, getFloat, getOrDefault, getOrDefault, merge, mergeAllFloat, mergeFloat, put, put, putAll, putAll, putAll, putAllIfAbsent, putIfAbsent, putIfAbsent, rem, remOrDefault, remove, remove, remove, replace, replace, replace, replace, replaceAll, replaceFloats, replaceFloats, setDefaultReturnValuepublic Object2FloatLinkedOpenHashMap()
public Object2FloatLinkedOpenHashMap(int minCapacity)
minCapacity - the minimum capacity the HashMap is allowed to be.java.lang.IllegalStateException - if the minimum capacity is negativepublic Object2FloatLinkedOpenHashMap(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 Object2FloatLinkedOpenHashMap(T[] 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 Object2FloatLinkedOpenHashMap(T[] 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 Object2FloatLinkedOpenHashMap(T[] 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 Object2FloatLinkedOpenHashMap(T[] 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 Object2FloatLinkedOpenHashMap(java.util.Map<? extends T,? extends java.lang.Float> map)
map - the values that should be present in the mappublic Object2FloatLinkedOpenHashMap(java.util.Map<? extends T,? 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 Object2FloatLinkedOpenHashMap(Object2FloatMap<T> map)
map - the values that should be present in the mappublic Object2FloatLinkedOpenHashMap(Object2FloatMap<T> 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(T key, float value)
Object2FloatSortedMapputAndMoveToFirst in interface Object2FloatSortedMap<T>key - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public float putAndMoveToLast(T key, float value)
Object2FloatSortedMapputAndMoveToLast in interface Object2FloatSortedMap<T>key - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public boolean moveToFirst(T key)
Object2FloatSortedMapmoveToFirst in interface Object2FloatSortedMap<T>key - that should be moved to the first indexpublic boolean moveToLast(T key)
Object2FloatSortedMapmoveToLast in interface Object2FloatSortedMap<T>key - that should be moved to the first lastpublic float getAndMoveToFirst(T key)
Object2FloatSortedMapgetAndMoveToFirst in interface Object2FloatSortedMap<T>key - that is searched forpublic float getAndMoveToLast(T key)
Object2FloatSortedMapgetAndMoveToLast in interface Object2FloatSortedMap<T>key - that is searched forpublic java.util.Comparator<T> comparator()
comparator in interface java.util.SortedMap<T,java.lang.Float>comparator in interface Object2FloatSortedMap<T>public Object2FloatSortedMap<T> subMap(T fromKey, T toKey)
subMap in interface java.util.SortedMap<T,java.lang.Float>subMap in interface Object2FloatSortedMap<T>public Object2FloatSortedMap<T> headMap(T toKey)
headMap in interface java.util.SortedMap<T,java.lang.Float>headMap in interface Object2FloatSortedMap<T>public Object2FloatSortedMap<T> tailMap(T fromKey)
tailMap in interface java.util.SortedMap<T,java.lang.Float>tailMap in interface Object2FloatSortedMap<T>public T firstKey()
firstKey in interface java.util.SortedMap<T,java.lang.Float>public T pollFirstKey()
Object2FloatSortedMappollFirstKey in interface Object2FloatSortedMap<T>public T lastKey()
lastKey in interface java.util.SortedMap<T,java.lang.Float>public T pollLastKey()
Object2FloatSortedMappollLastKey in interface Object2FloatSortedMap<T>public float firstFloatValue()
Object2FloatSortedMapfirstFloatValue in interface Object2FloatSortedMap<T>public float lastFloatValue()
Object2FloatSortedMaplastFloatValue in interface Object2FloatSortedMap<T>public ObjectSet<Object2FloatMap.Entry<T>> object2FloatEntrySet()
Object2FloatMapobject2FloatEntrySet in interface Object2FloatMap<T>object2FloatEntrySet in class Object2FloatOpenHashMap<T>public ObjectSet<T> keySet()
keySet in interface java.util.Map<T,java.lang.Float>keySet in interface java.util.SortedMap<T,java.lang.Float>keySet in interface Object2FloatMap<T>keySet in interface Object2FloatSortedMap<T>keySet in class Object2FloatOpenHashMap<T>public FloatCollection values()
values in interface java.util.Map<T,java.lang.Float>values in interface java.util.SortedMap<T,java.lang.Float>values in interface Object2FloatMap<T>values in interface Object2FloatSortedMap<T>values in class Object2FloatOpenHashMap<T>public void forEach(ObjectFloatConsumer<T> action)
Object2FloatMapforEach in interface Object2FloatMap<T>forEach in class Object2FloatOpenHashMap<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 Object2FloatOpenHashMap<T>