T - the type of elements maintained by this Collectionpublic interface Object2LongSortedMap<T> extends java.util.SortedMap<T,java.lang.Long>, Object2LongMap<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 |
Object2LongSortedMap.FastSortedSet<T>
Fast Sorted Entry Set that allows for a faster Entry Iterator by recycling the Entry Object and just exchanging 1 internal value
|
Object2LongMap.Entry<T>, Object2LongMap.FastEntrySet<T>| Modifier and Type | Method and Description |
|---|---|
java.util.Comparator<T> |
comparator() |
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.
|
default Object2LongSortedMap<T> |
headMap(T toKey) |
ObjectSet<T> |
keySet() |
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.
|
default Object2LongSortedMap<T> |
subMap(T fromKey,
T toKey) |
default Object2LongSortedMap<T> |
tailMap(T fromKey) |
LongCollection |
values() |
addTo, 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, sizeapplyAsLonglong putAndMoveToFirst(T key, long value)
key - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)long putAndMoveToLast(T key, long 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 lastlong getAndMoveToFirst(T key)
key - that is searched forlong getAndMoveToLast(T key)
key - that is searched forjava.util.Comparator<T> comparator()
comparator in interface java.util.SortedMap<T,java.lang.Long>ObjectSet<T> keySet()
keySet in interface java.util.Map<T,java.lang.Long>keySet in interface Object2LongMap<T>keySet in interface java.util.SortedMap<T,java.lang.Long>LongCollection values()
values in interface java.util.Map<T,java.lang.Long>values in interface Object2LongMap<T>values in interface java.util.SortedMap<T,java.lang.Long>T pollFirstKey()
T pollLastKey()
long firstLongValue()
long lastLongValue()
default Object2LongSortedMap<T> subMap(T fromKey, T toKey)
subMap in interface java.util.SortedMap<T,java.lang.Long>default Object2LongSortedMap<T> headMap(T toKey)
headMap in interface java.util.SortedMap<T,java.lang.Long>default Object2LongSortedMap<T> tailMap(T fromKey)
tailMap in interface java.util.SortedMap<T,java.lang.Long>