T - the keyType of elements maintained by this Collectionpublic class LinkedEnum2FloatMap<T extends java.lang.Enum<T>> extends Enum2FloatMap<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 |
|---|
LinkedEnum2FloatMap(java.lang.Class<T> keyType)
Default Constructor
|
LinkedEnum2FloatMap(java.util.Map<? extends T,? extends java.lang.Float> map)
A Helper constructor that allows to create a EnumMap with exactly the same values as the provided map.
|
LinkedEnum2FloatMap(Object2FloatMap<T> map)
A Type Specific Helper function that allows to create a new EnumMap with exactly the same values as the provided map.
|
LinkedEnum2FloatMap(T[] keys,
float[] values)
Helper constructor that allow to create a EnumMap from unboxed values
|
LinkedEnum2FloatMap(T[] keys,
java.lang.Float[] values)
Helper constructor that allow to create a EnumMap from boxed values (it will unbox them)
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
LinkedEnum2FloatMap<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, getFloat, getOrDefault, mergeAllFloat, mergeFloat, put, putIfAbsent, rem, remOrDefault, remove, remove, replace, replace, size, subFrom, supplyFloatIfAbsentaddToAll, entrySet, equals, get, getDefaultReturnValue, getOrDefault, hashCode, put, putAll, putAll, putAll, putAll, putAllIfAbsent, replaceFloats, replaceFloats, setDefaultReturnValuesynchronize, synchronize, unmodifiableaddTo, addToAll, applyAsFloat, builder, compute, computeFloat, computeFloatIfAbsent, computeFloatIfPresent, computeIfAbsent, computeIfPresent, containsValue, containsValue, entrySet, forEach, get, getDefaultReturnValue, getFloat, getOrDefault, getOrDefault, merge, mergeAllFloat, mergeFloat, put, put, put, put, putAll, putAll, putAll, putAll, putAll, putAllIfAbsent, putIfAbsent, putIfAbsent, rem, remOrDefault, remove, remove, remove, replace, replace, replace, replace, replaceAll, replaceFloats, replaceFloats, setDefaultReturnValue, subFrom, supplyFloatIfAbsentpublic LinkedEnum2FloatMap(java.lang.Class<T> keyType)
keyType - the type of Enum that should be usedpublic LinkedEnum2FloatMap(T[] keys, java.lang.Float[] values)
keys - the keys that should be put into the EnumMapvalues - the values that should be put into the EnumMap.java.lang.IllegalStateException - if the keys and values do not match in lenghtpublic LinkedEnum2FloatMap(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 LinkedEnum2FloatMap(java.util.Map<? extends T,? extends java.lang.Float> map)
map - the values that should be present in the mappublic LinkedEnum2FloatMap(Object2FloatMap<T> map)
map - the values that should be present in the mappublic float putAndMoveToFirst(T key, float value)
Object2FloatOrderedMapputAndMoveToFirst in interface Object2FloatOrderedMap<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)
Object2FloatOrderedMapputAndMoveToLast in interface Object2FloatOrderedMap<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)
Object2FloatOrderedMapmoveToFirst in interface Object2FloatOrderedMap<T extends java.lang.Enum<T>>key - that should be moved to the first indexpublic boolean moveToLast(T key)
Object2FloatOrderedMapmoveToLast in interface Object2FloatOrderedMap<T extends java.lang.Enum<T>>key - that should be moved to the first lastpublic float getAndMoveToFirst(T key)
Object2FloatOrderedMapgetAndMoveToFirst in interface Object2FloatOrderedMap<T extends java.lang.Enum<T>>key - that is searched forpublic float getAndMoveToLast(T key)
Object2FloatOrderedMapgetAndMoveToLast in interface Object2FloatOrderedMap<T extends java.lang.Enum<T>>key - that is searched forpublic LinkedEnum2FloatMap<T> copy()
Object2FloatMapcopy in interface Object2FloatMap<T extends java.lang.Enum<T>>copy in interface Object2FloatOrderedMap<T extends java.lang.Enum<T>>copy in class Enum2FloatMap<T extends java.lang.Enum<T>>public T firstKey()
Object2FloatOrderedMapfirstKey in interface Object2FloatOrderedMap<T extends java.lang.Enum<T>>public T pollFirstKey()
Object2FloatOrderedMappollFirstKey in interface Object2FloatOrderedMap<T extends java.lang.Enum<T>>public T lastKey()
Object2FloatOrderedMaplastKey in interface Object2FloatOrderedMap<T extends java.lang.Enum<T>>public T pollLastKey()
Object2FloatOrderedMappollLastKey in interface Object2FloatOrderedMap<T extends java.lang.Enum<T>>public float firstFloatValue()
Object2FloatOrderedMapfirstFloatValue in interface Object2FloatOrderedMap<T extends java.lang.Enum<T>>public float lastFloatValue()
Object2FloatOrderedMaplastFloatValue in interface Object2FloatOrderedMap<T extends java.lang.Enum<T>>public ObjectOrderedSet<Object2FloatMap.Entry<T>> object2FloatEntrySet()
Object2FloatMapobject2FloatEntrySet in interface Object2FloatMap<T extends java.lang.Enum<T>>object2FloatEntrySet in interface Object2FloatOrderedMap<T extends java.lang.Enum<T>>object2FloatEntrySet in class Enum2FloatMap<T extends java.lang.Enum<T>>public ObjectOrderedSet<T> keySet()
keySet in interface java.util.Map<T extends java.lang.Enum<T>,java.lang.Float>keySet in interface Object2FloatMap<T extends java.lang.Enum<T>>keySet in interface Object2FloatOrderedMap<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 Object2FloatMap<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 Enum2FloatMap<T extends java.lang.Enum<T>>action - processor of the values that are iterator over