T - the type of elements maintained by this CollectionV - the type of elements maintained by this Collectionpublic interface Object2ObjectSortedMap<T,V> extends java.util.SortedMap<T,V>, Object2ObjectMap<T,V>
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 |
Object2ObjectSortedMap.FastSortedSet<T,V>
Fast Sorted Entry Set that allows for a faster Entry Iterator by recycling the Entry Object and just exchanging 1 internal value
|
Object2ObjectMap.Entry<T,V>, Object2ObjectMap.FastEntrySet<T,V>| Modifier and Type | Method and Description |
|---|---|
java.util.Comparator<T> |
comparator() |
V |
firstValue()
A method to get the first Value of a Map.
|
V |
getAndMoveToFirst(T key)
A Specific get method that allows to move teh given key/value int the first index.
|
V |
getAndMoveToLast(T key)
A Specific get method that allows to move teh given key/value int the last index.
|
default Object2ObjectSortedMap<T,V> |
headMap(T toKey) |
ObjectSet<T> |
keySet() |
V |
lastValue()
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.
|
V |
putAndMoveToFirst(T key,
V value)
A customized put method that allows you to insert into the first index.
|
V |
putAndMoveToLast(T key,
V value)
A customized put method that allows you to insert into the last index.
|
default Object2ObjectSortedMap<T,V> |
subMap(T fromKey,
T toKey) |
default Object2ObjectSortedMap<T,V> |
tailMap(T fromKey) |
ObjectCollection<V> |
values() |
compute, compute, computeIfAbsent, computeIfAbsent, computeIfPresent, computeIfPresent, entrySet, forEach, forEach, getDefaultReturnValue, merge, merge, mergeAll, object2ObjectEntrySet, put, putAll, putAll, putAll, putAllIfAbsent, putIfAbsent, rem, remOrDefault, remove, replace, replace, replaceAll, replaceObjects, replaceObjects, setDefaultReturnValueclear, containsKey, containsValue, equals, get, getOrDefault, hashCode, isEmpty, putAll, remove, sizeapply, getObjectV putAndMoveToFirst(T key, V value)
key - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)V putAndMoveToLast(T key, V 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 lastV getAndMoveToFirst(T key)
key - that is searched forV getAndMoveToLast(T key)
key - that is searched forjava.util.Comparator<T> comparator()
ObjectCollection<V> values()
T pollFirstKey()
T pollLastKey()
V firstValue()
V lastValue()
default Object2ObjectSortedMap<T,V> subMap(T fromKey, T toKey)
default Object2ObjectSortedMap<T,V> headMap(T toKey)