Interface Int2ObjectSortedMap<V>
- All Superinterfaces:
Function<Integer,,V> Function<Integer,,V> Int2ObjectFunction<V>,Int2ObjectMap<V>,IntFunction<V>,Map<Integer,,V> SequencedMap<Integer,,V> SortedMap<Integer,V>
- All Known Implementing Classes:
AbstractInt2ObjectSortedMap,Int2ObjectAVLTreeMap,Int2ObjectLinkedOpenHashMap,Int2ObjectRBTreeMap,Int2ObjectSortedMaps.EmptySortedMap,Int2ObjectSortedMaps.Singleton,Int2ObjectSortedMaps.SynchronizedSortedMap,Int2ObjectSortedMaps.UnmodifiableSortedMap
A type-specific
SortedMap; provides some additional methods that use polymorphism to
avoid (un)boxing.
Additionally, this interface strengthens entrySet(), keySet(),
values(), comparator(), SortedMap.subMap(Object,Object),
SortedMap.headMap(Object) and SortedMap.tailMap(Object).
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceA sorted entry set providing fast iteration.Nested classes/interfaces inherited from interface it.unimi.dsi.fastutil.ints.Int2ObjectMap
Int2ObjectMap.Entry<V>, Int2ObjectMap.FastEntrySet<V> -
Method Summary
Modifier and TypeMethodDescriptionReturns the comparator associated with this sorted set, or null if it uses its keys' natural ordering.default ObjectSortedSet<Map.Entry<Integer, V>> entrySet()Deprecated.Please use the corresponding type-specific method instead.intReturns the first (lowest) key currently in this map.default IntegerfirstKey()Deprecated.Please use the corresponding type-specific method instead.headMap(int toKey) Returns a view of the portion of this sorted map whose keys are strictly less thantoKey.default Int2ObjectSortedMap<V> Deprecated.Please use the corresponding type-specific method instead.Returns a type-specific sorted-set view of the mappings contained in this map.keySet()Returns a type-specific sorted-set view of the keys contained in this map.intReturns the last (highest) key currently in this map.default IntegerlastKey()Deprecated.Please use the corresponding type-specific method instead.subMap(int fromKey, int toKey) Returns a view of the portion of this sorted map whose keys range fromfromKey, inclusive, totoKey, exclusive.default Int2ObjectSortedMap<V> Deprecated.Please use the corresponding type-specific method instead.tailMap(int fromKey) Returns a view of the portion of this sorted map whose keys are greater than or equal tofromKey.default Int2ObjectSortedMap<V> Deprecated.Please use the corresponding type-specific method instead.values()Returns a type-specific set view of the values contained in this map.Methods inherited from interface it.unimi.dsi.fastutil.ints.Int2ObjectFunction
andThenByte, andThenChar, andThenDouble, andThenFloat, andThenInt, andThenLong, andThenObject, andThenReference, andThenShort, apply, compose, composeByte, composeChar, composeDouble, composeFloat, composeInt, composeLong, composeObject, composeReference, composeShort, get, put, removeMethods inherited from interface it.unimi.dsi.fastutil.ints.Int2ObjectMap
clear, compute, computeIfAbsent, computeIfAbsent, computeIfAbsentPartial, computeIfPresent, containsKey, containsKey, defaultReturnValue, defaultReturnValue, forEach, forEach, get, getOrDefault, getOrDefault, merge, put, putIfAbsent, remove, remove, replace, replace, sizeMethods inherited from interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, equals, get, getOrDefault, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, sizeMethods inherited from interface java.util.SequencedMap
firstEntry, lastEntry, pollFirstEntry, pollLastEntry, sequencedEntrySet, sequencedKeySet, sequencedValues
-
Method Details
-
subMap
Returns a view of the portion of this sorted map whose keys range fromfromKey, inclusive, totoKey, exclusive.- See Also:
- API Notes:
- Note that this specification strengthens the one given in
SortedMap.subMap(Object,Object).
-
headMap
Returns a view of the portion of this sorted map whose keys are strictly less thantoKey.- See Also:
- API Notes:
- Note that this specification strengthens the one given in
SortedMap.headMap(Object).
-
tailMap
Returns a view of the portion of this sorted map whose keys are greater than or equal tofromKey.- See Also:
- API Notes:
- Note that this specification strengthens the one given in
SortedMap.tailMap(Object).
-
firstIntKey
int firstIntKey()Returns the first (lowest) key currently in this map.- See Also:
-
lastIntKey
int lastIntKey()Returns the last (highest) key currently in this map.- See Also:
-
subMap
Deprecated.Please use the corresponding type-specific method instead.- Specified by:
subMapin interfaceSortedMap<Integer,V> - API Notes:
- Note that this specification strengthens the one given in
SortedMap.subMap(Object,Object).
-
headMap
Deprecated.Please use the corresponding type-specific method instead.- Specified by:
headMapin interfaceSortedMap<Integer,V> - API Notes:
- Note that this specification strengthens the one given in
SortedMap.headMap(Object).
-
tailMap
Deprecated.Please use the corresponding type-specific method instead.- Specified by:
tailMapin interfaceSortedMap<Integer,V> - API Notes:
- Note that this specification strengthens the one given in
SortedMap.tailMap(Object).
-
firstKey
-
lastKey
-
entrySet
Deprecated.Please use the corresponding type-specific method instead.Returns a sorted-set view of the mappings contained in this map.- Specified by:
entrySetin interfaceInt2ObjectMap<V>- Specified by:
entrySetin interfaceMap<Integer,V> - Specified by:
entrySetin interfaceSortedMap<Integer,V> - Returns:
- a sorted-set view of the mappings contained in this map.
- See Also:
- API Notes:
- Note that this specification strengthens the one given in the corresponding type-specific unsorted map.
-
int2ObjectEntrySet
ObjectSortedSet<Int2ObjectMap.Entry<V>> int2ObjectEntrySet()Returns a type-specific sorted-set view of the mappings contained in this map.- Specified by:
int2ObjectEntrySetin interfaceInt2ObjectMap<V>- Returns:
- a type-specific sorted-set view of the mappings contained in this map.
- See Also:
- API Notes:
- Note that this specification strengthens the one given in the corresponding type-specific unsorted map.
-
keySet
IntSortedSet keySet()Returns a type-specific sorted-set view of the keys contained in this map.- Specified by:
keySetin interfaceInt2ObjectMap<V>- Specified by:
keySetin interfaceMap<Integer,V> - Specified by:
keySetin interfaceSortedMap<Integer,V> - Returns:
- a sorted-set view of the keys contained in this map.
- See Also:
- API Notes:
- Note that this specification strengthens the one given in the corresponding type-specific unsorted map.
-
values
ObjectCollection<V> values()Returns a type-specific set view of the values contained in this map.- Specified by:
valuesin interfaceInt2ObjectMap<V>- Specified by:
valuesin interfaceMap<Integer,V> - Specified by:
valuesin interfaceSortedMap<Integer,V> - Returns:
- a set view of the values contained in this map.
- See Also:
- API Notes:
- Note that this specification strengthens the one given in
Map.values(), which was already strengthened in the corresponding type-specific class, but was weakened by the fact that this interface extendsSortedMap.
-
comparator
IntComparator comparator()Returns the comparator associated with this sorted set, or null if it uses its keys' natural ordering.- Specified by:
comparatorin interfaceSortedMap<Integer,V> - See Also:
- API Notes:
- Note that this specification strengthens the one given in
SortedMap.comparator().
-