T - the type of elements maintained by this Collectionpublic interface Object2FloatSortedMap<T> extends java.util.SortedMap<T,java.lang.Float>, Object2FloatMap<T>
SortedMap interface to reduce boxing/unboxing, with a couple extra methods that allow greater control over maps.| Modifier and Type | Interface and Description |
|---|---|
static interface |
Object2FloatSortedMap.FastSortedSet<T>
Fast Sorted Entry Set that allows for a faster Entry Iterator by recycling the Entry Object and just exchanging 1 internal value
|
Object2FloatMap.Entry<T>, Object2FloatMap.FastEntrySet<T>| Modifier and Type | Method and Description |
|---|---|
java.util.Comparator<T> |
comparator() |
float |
firstFloatValue()
A method to get the first Value of a Map.
|
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.
|
default Object2FloatSortedMap<T> |
headMap(T toKey) |
ObjectSet<T> |
keySet() |
float |
lastFloatValue()
A method to get the last Value 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.
|
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.
|
default Object2FloatSortedMap<T> |
subMap(T fromKey,
T toKey) |
default Object2FloatSortedMap<T> |
tailMap(T fromKey) |
FloatCollection |
values() |
addTo, addToAll, compute, computeFloat, computeFloatIfAbsent, computeFloatIfPresent, computeIfAbsent, computeIfPresent, containsValue, containsValue, entrySet, forEach, forEach, get, getDefaultReturnValue, getFloat, getOrDefault, getOrDefault, merge, mergeAllFloat, mergeFloat, object2FloatEntrySet, put, put, putAll, putAll, putAll, putAllIfAbsent, putIfAbsent, putIfAbsent, rem, remOrDefault, remove, remove, remove, replace, replace, replace, replace, replaceAll, replaceFloats, replaceFloats, setDefaultReturnValuefloat putAndMoveToFirst(T key, float value)
key - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)float putAndMoveToLast(T key, float value)
key - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)boolean moveToFirst(T key)
key - that should be moved to the first indexboolean moveToLast(T key)
key - that should be moved to the first lastfloat getAndMoveToFirst(T key)
key - that is searched forfloat getAndMoveToLast(T key)
key - that is searched forjava.util.Comparator<T> comparator()
comparator in interface java.util.SortedMap<T,java.lang.Float>ObjectSet<T> keySet()
keySet in interface java.util.Map<T,java.lang.Float>keySet in interface Object2FloatMap<T>keySet in interface java.util.SortedMap<T,java.lang.Float>FloatCollection values()
values in interface java.util.Map<T,java.lang.Float>values in interface Object2FloatMap<T>values in interface java.util.SortedMap<T,java.lang.Float>T pollFirstKey()
T pollLastKey()
float firstFloatValue()
float lastFloatValue()
default Object2FloatSortedMap<T> subMap(T fromKey, T toKey)
subMap in interface java.util.SortedMap<T,java.lang.Float>default Object2FloatSortedMap<T> headMap(T toKey)
headMap in interface java.util.SortedMap<T,java.lang.Float>default Object2FloatSortedMap<T> tailMap(T fromKey)
tailMap in interface java.util.SortedMap<T,java.lang.Float>