T - the type of elements maintained by this CollectionV - the type of elements maintained by this Collectionpublic static class Object2ObjectMaps.SynchronizedSortedMap<T,V> extends Object2ObjectMaps.SynchronizedMap<T,V> implements Object2ObjectSortedMap<T,V>
AbstractObject2ObjectMap.BasicEntry<T,V>java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Object2ObjectSortedMap.FastSortedSet<T,V>Object2ObjectMap.Entry<T,V>, Object2ObjectMap.FastEntrySet<T,V>| Modifier and Type | Method and Description |
|---|---|
java.util.Comparator<T> |
comparator() |
T |
firstKey() |
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.
|
Object2ObjectSortedMap<T,V> |
headMap(T toKey) |
T |
lastKey() |
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.
|
Object2ObjectSortedMap<T,V> |
subMap(T fromKey,
T toKey) |
Object2ObjectSortedMap<T,V> |
tailMap(T fromKey) |
compute, computeIfAbsent, computeIfPresent, forEach, getDefaultReturnValue, getObject, keySet, merge, mergeAll, object2ObjectEntrySet, put, putAll, putAll, putAll, putAllIfAbsent, putIfAbsent, rem, remOrDefault, replace, replace, replaceObjects, replaceObjects, setDefaultReturnValue, size, valuescontainsKey, containsValue, entrySet, equals, get, getOrDefault, hashCodekeySet, valuescompute, 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, getObjectpublic V putAndMoveToFirst(T key, V value)
Object2ObjectSortedMapputAndMoveToFirst in interface Object2ObjectSortedMap<T,V>key - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public V putAndMoveToLast(T key, V value)
Object2ObjectSortedMapputAndMoveToLast in interface Object2ObjectSortedMap<T,V>key - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public boolean moveToFirst(T key)
Object2ObjectSortedMapmoveToFirst in interface Object2ObjectSortedMap<T,V>key - that should be moved to the first indexpublic boolean moveToLast(T key)
Object2ObjectSortedMapmoveToLast in interface Object2ObjectSortedMap<T,V>key - that should be moved to the first lastpublic V getAndMoveToFirst(T key)
Object2ObjectSortedMapgetAndMoveToFirst in interface Object2ObjectSortedMap<T,V>key - that is searched forpublic V getAndMoveToLast(T key)
Object2ObjectSortedMapgetAndMoveToLast in interface Object2ObjectSortedMap<T,V>key - that is searched forpublic java.util.Comparator<T> comparator()
comparator in interface java.util.SortedMap<T,V>comparator in interface Object2ObjectSortedMap<T,V>public Object2ObjectSortedMap<T,V> subMap(T fromKey, T toKey)
public Object2ObjectSortedMap<T,V> headMap(T toKey)
public Object2ObjectSortedMap<T,V> tailMap(T fromKey)
public T pollFirstKey()
Object2ObjectSortedMappollFirstKey in interface Object2ObjectSortedMap<T,V>public T pollLastKey()
Object2ObjectSortedMappollLastKey in interface Object2ObjectSortedMap<T,V>public V firstValue()
Object2ObjectSortedMapfirstValue in interface Object2ObjectSortedMap<T,V>public V lastValue()
Object2ObjectSortedMaplastValue in interface Object2ObjectSortedMap<T,V>