T - the type of elements maintained by this Collectionpublic class LinkedEnum2FloatMap<T extends java.lang.Enum<T>> extends Enum2FloatMap<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 |
|---|
LinkedEnum2FloatMap(java.lang.Class<T> keyType)
Default Constructor
|
| 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, containsKey, containsValue, getFloat, getOrDefault, put, putIfAbsent, rem, remOrDefault, removeaddToAll, computeFloat, computeFloatIfAbsent, computeFloatIfPresent, entrySet, equals, get, getDefaultReturnValue, getOrDefault, hashCode, mergeAllFloat, mergeFloat, putAll, putAll, putAll, putAllIfAbsent, replace, replace, replaceFloats, replaceFloats, setDefaultReturnValuecontainsValue, isEmpty, put, remove, size, toStringaddTo, 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 LinkedEnum2FloatMap(java.lang.Class<T> keyType)
keyType - the type of Enum that should be usedpublic float putAndMoveToFirst(T key, float value)
Object2FloatSortedMapputAndMoveToFirst in interface Object2FloatSortedMap<T extends java.lang.Enum<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 extends java.lang.Enum<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 extends java.lang.Enum<T>>key - that should be moved to the first indexpublic boolean moveToLast(T key)
Object2FloatSortedMapmoveToLast in interface Object2FloatSortedMap<T extends java.lang.Enum<T>>key - that should be moved to the first lastpublic float getAndMoveToFirst(T key)
Object2FloatSortedMapgetAndMoveToFirst in interface Object2FloatSortedMap<T extends java.lang.Enum<T>>key - that is searched forpublic float getAndMoveToLast(T key)
Object2FloatSortedMapgetAndMoveToLast in interface Object2FloatSortedMap<T extends java.lang.Enum<T>>key - that is searched forpublic java.util.Comparator<T> comparator()
comparator in interface java.util.SortedMap<T extends java.lang.Enum<T>,java.lang.Float>comparator in interface Object2FloatSortedMap<T extends java.lang.Enum<T>>public Object2FloatSortedMap<T> subMap(T fromKey, T toKey)
public Object2FloatSortedMap<T> headMap(T toKey)
public Object2FloatSortedMap<T> tailMap(T fromKey)
public T firstKey()
public T pollFirstKey()
Object2FloatSortedMappollFirstKey in interface Object2FloatSortedMap<T extends java.lang.Enum<T>>public T lastKey()
public T pollLastKey()
Object2FloatSortedMappollLastKey in interface Object2FloatSortedMap<T extends java.lang.Enum<T>>public float firstFloatValue()
Object2FloatSortedMapfirstFloatValue in interface Object2FloatSortedMap<T extends java.lang.Enum<T>>public float lastFloatValue()
Object2FloatSortedMaplastFloatValue in interface Object2FloatSortedMap<T extends java.lang.Enum<T>>public ObjectSet<Object2FloatMap.Entry<T>> object2FloatEntrySet()
Object2FloatMapobject2FloatEntrySet in interface Object2FloatMap<T extends java.lang.Enum<T>>object2FloatEntrySet in class Enum2FloatMap<T extends java.lang.Enum<T>>public ObjectSet<T> keySet()
keySet in interface java.util.Map<T extends java.lang.Enum<T>,java.lang.Float>keySet in interface java.util.SortedMap<T extends java.lang.Enum<T>,java.lang.Float>keySet in interface Object2FloatMap<T extends java.lang.Enum<T>>keySet in interface Object2FloatSortedMap<T extends java.lang.Enum<T>>keySet in class Enum2FloatMap<T extends java.lang.Enum<T>>public FloatCollection values()
values in interface java.util.Map<T extends java.lang.Enum<T>,java.lang.Float>values in interface java.util.SortedMap<T extends java.lang.Enum<T>,java.lang.Float>values in interface Object2FloatMap<T extends java.lang.Enum<T>>values in interface Object2FloatSortedMap<T extends java.lang.Enum<T>>values in class Enum2FloatMap<T extends java.lang.Enum<T>>public void forEach(ObjectFloatConsumer<T> action)
Object2FloatMapforEach in interface Object2FloatMap<T extends java.lang.Enum<T>>forEach in class AbstractObject2FloatMap<T extends java.lang.Enum<T>>action - processor of the values that are iterator over