T - the type of elements maintained by this Collectionpublic static class Object2LongMaps.SynchronizedSortedMap<T> extends Object2LongMaps.SynchronizedMap<T> implements Object2LongSortedMap<T>
AbstractObject2LongMap.BasicEntry<T>java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Object2LongSortedMap.FastSortedSet<T>Object2LongMap.Entry<T>, Object2LongMap.FastEntrySet<T>| Modifier and Type | Method and Description |
|---|---|
java.util.Comparator<T> |
comparator() |
T |
firstKey() |
long |
firstLongValue()
A method to get the first Value of a Map.
|
long |
getAndMoveToFirst(T key)
A Specific get method that allows to move teh given key/value int the first index.
|
long |
getAndMoveToLast(T key)
A Specific get method that allows to move teh given key/value int the last index.
|
Object2LongSortedMap<T> |
headMap(T toKey) |
T |
lastKey() |
long |
lastLongValue()
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.
|
long |
putAndMoveToFirst(T key,
long value)
A customized put method that allows you to insert into the first index.
|
long |
putAndMoveToLast(T key,
long value)
A customized put method that allows you to insert into the last index.
|
Object2LongSortedMap<T> |
subMap(T fromKey,
T toKey) |
Object2LongSortedMap<T> |
tailMap(T fromKey) |
addTo, addToAll, computeLong, computeLongIfAbsent, computeLongIfPresent, containsValue, forEach, getDefaultReturnValue, getLong, getOrDefault, keySet, mergeAllLong, mergeLong, object2LongEntrySet, put, putAll, putAll, putAll, putAllIfAbsent, putIfAbsent, rem, remOrDefault, remove, replace, replace, replaceLongs, replaceLongs, setDefaultReturnValue, size, valuescontainsKey, entrySet, equals, get, getOrDefault, hashCodeclear, containsValue, isEmpty, put, remove, toStringkeySet, valuesaddTo, addToAll, compute, computeIfAbsent, computeIfPresent, computeLong, computeLongIfAbsent, computeLongIfPresent, containsValue, containsValue, entrySet, forEach, forEach, get, getDefaultReturnValue, getLong, getOrDefault, getOrDefault, merge, mergeAllLong, mergeLong, object2LongEntrySet, put, put, putAll, putAll, putAll, putAllIfAbsent, putIfAbsent, putIfAbsent, rem, remOrDefault, remove, remove, remove, replace, replace, replace, replace, replaceAll, replaceLongs, replaceLongs, setDefaultReturnValueclear, containsKey, equals, hashCode, isEmpty, putAll, sizeapplyAsLongpublic long putAndMoveToFirst(T key, long value)
Object2LongSortedMapputAndMoveToFirst in interface Object2LongSortedMap<T>key - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public long putAndMoveToLast(T key, long value)
Object2LongSortedMapputAndMoveToLast in interface Object2LongSortedMap<T>key - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public boolean moveToFirst(T key)
Object2LongSortedMapmoveToFirst in interface Object2LongSortedMap<T>key - that should be moved to the first indexpublic boolean moveToLast(T key)
Object2LongSortedMapmoveToLast in interface Object2LongSortedMap<T>key - that should be moved to the first lastpublic long getAndMoveToFirst(T key)
Object2LongSortedMapgetAndMoveToFirst in interface Object2LongSortedMap<T>key - that is searched forpublic long getAndMoveToLast(T key)
Object2LongSortedMapgetAndMoveToLast in interface Object2LongSortedMap<T>key - that is searched forpublic java.util.Comparator<T> comparator()
comparator in interface java.util.SortedMap<T,java.lang.Long>comparator in interface Object2LongSortedMap<T>public Object2LongSortedMap<T> subMap(T fromKey, T toKey)
subMap in interface java.util.SortedMap<T,java.lang.Long>subMap in interface Object2LongSortedMap<T>public Object2LongSortedMap<T> headMap(T toKey)
headMap in interface java.util.SortedMap<T,java.lang.Long>headMap in interface Object2LongSortedMap<T>public Object2LongSortedMap<T> tailMap(T fromKey)
tailMap in interface java.util.SortedMap<T,java.lang.Long>tailMap in interface Object2LongSortedMap<T>public T firstKey()
firstKey in interface java.util.SortedMap<T,java.lang.Long>public T pollFirstKey()
Object2LongSortedMappollFirstKey in interface Object2LongSortedMap<T>public T pollLastKey()
Object2LongSortedMappollLastKey in interface Object2LongSortedMap<T>public long firstLongValue()
Object2LongSortedMapfirstLongValue in interface Object2LongSortedMap<T>public long lastLongValue()
Object2LongSortedMaplastLongValue in interface Object2LongSortedMap<T>