public interface Int2IntSortedMap extends java.util.SortedMap<java.lang.Integer,java.lang.Integer>, Int2IntMap
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 |
Int2IntSortedMap.FastSortedSet
Fast Sorted Entry Set that allows for a faster Entry Iterator by recycling the Entry Object and just exchanging 1 internal value
|
Int2IntMap.Entry, Int2IntMap.FastEntrySet| Modifier and Type | Method and Description |
|---|---|
IntComparator |
comparator() |
int |
firstIntKey()
A method to get the first Key of a Map.
|
int |
firstIntValue()
A method to get the first Value of a Map.
|
default java.lang.Integer |
firstKey()
Deprecated.
|
int |
getAndMoveToFirst(int key)
A Specific get method that allows to move teh given key/value int the first index.
|
int |
getAndMoveToLast(int key)
A Specific get method that allows to move teh given key/value int the last index.
|
Int2IntSortedMap |
headMap(int toKey)
A Type Specific HeadMap method to reduce boxing/unboxing
|
default Int2IntSortedMap |
headMap(java.lang.Integer toKey)
Deprecated.
|
IntSet |
keySet() |
int |
lastIntKey()
A method to get the last Key of a Map.
|
int |
lastIntValue()
A method to get the last Value of a Map.
|
default java.lang.Integer |
lastKey()
Deprecated.
|
boolean |
moveToFirst(int key)
A specific move method to move a given key/value to the first index.
|
boolean |
moveToLast(int key)
A specific move method to move a given key/value to the last index.
|
int |
pollFirstIntKey()
A method to get and remove the first Key of a Map.
|
int |
pollLastIntKey()
A method to get and remove the last Key of a Map.
|
int |
putAndMoveToFirst(int key,
int value)
A customized put method that allows you to insert into the first index.
|
int |
putAndMoveToLast(int key,
int value)
A customized put method that allows you to insert into the last index.
|
default Int2IntSortedMap |
subMap(java.lang.Integer fromKey,
java.lang.Integer toKey)
Deprecated.
|
Int2IntSortedMap |
subMap(int fromKey,
int toKey)
A Type Specific SubMap method to reduce boxing/unboxing
|
Int2IntSortedMap |
tailMap(int fromKey)
A Type Specific TailMap method to reduce boxing/unboxing
|
default Int2IntSortedMap |
tailMap(java.lang.Integer fromKey)
Deprecated.
|
IntCollection |
values() |
addTo, addToAll, compute, computeIfAbsent, computeIfPresent, computeInt, computeIntIfAbsent, computeIntIfPresent, containsKey, containsKey, containsValue, containsValue, entrySet, forEach, forEach, get, getDefaultReturnValue, getInt, getOrDefault, getOrDefault, int2IntEntrySet, merge, mergeAllInt, mergeInt, put, put, putAll, putAll, putAll, putAllIfAbsent, putIfAbsent, putIfAbsent, remInt, remIntOrDefault, remove, remove, remove, replace, replace, replace, replace, replaceAll, replaceInts, replaceInts, setDefaultReturnValueapplyAsIntint putAndMoveToFirst(int key,
int value)
key - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)int putAndMoveToLast(int key,
int value)
key - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)boolean moveToFirst(int key)
key - that should be moved to the first indexboolean moveToLast(int key)
key - that should be moved to the first lastint getAndMoveToFirst(int key)
key - that is searched forint getAndMoveToLast(int key)
key - that is searched forIntComparator comparator()
comparator in interface java.util.SortedMap<java.lang.Integer,java.lang.Integer>IntSet keySet()
keySet in interface Int2IntMapkeySet in interface java.util.Map<java.lang.Integer,java.lang.Integer>keySet in interface java.util.SortedMap<java.lang.Integer,java.lang.Integer>IntCollection values()
values in interface Int2IntMapvalues in interface java.util.Map<java.lang.Integer,java.lang.Integer>values in interface java.util.SortedMap<java.lang.Integer,java.lang.Integer>Int2IntSortedMap subMap(int fromKey, int toKey)
fromKey - where the submap should starttoKey - where the subMap should endInt2IntSortedMap headMap(int toKey)
toKey - where the headMap should endInt2IntSortedMap tailMap(int fromKey)
fromKey - where the TailMap should startint firstIntKey()
int pollFirstIntKey()
int lastIntKey()
int pollLastIntKey()
int firstIntValue()
int lastIntValue()
@Deprecated default java.lang.Integer firstKey()
firstKey in interface java.util.SortedMap<java.lang.Integer,java.lang.Integer>@Deprecated default java.lang.Integer lastKey()
lastKey in interface java.util.SortedMap<java.lang.Integer,java.lang.Integer>@Deprecated default Int2IntSortedMap subMap(java.lang.Integer fromKey, java.lang.Integer toKey)
subMap in interface java.util.SortedMap<java.lang.Integer,java.lang.Integer>@Deprecated default Int2IntSortedMap headMap(java.lang.Integer toKey)
headMap in interface java.util.SortedMap<java.lang.Integer,java.lang.Integer>@Deprecated default Int2IntSortedMap tailMap(java.lang.Integer fromKey)
tailMap in interface java.util.SortedMap<java.lang.Integer,java.lang.Integer>