Package it.unimi.dsi.fastutil.shorts
Interface Short2CharSortedMap
- All Superinterfaces:
it.unimi.dsi.fastutil.Function<Short,,Character> Function<Short,,Character> IntUnaryOperator,Map<Short,,Character> SequencedMap<Short,,Character> it.unimi.dsi.fastutil.shorts.Short2CharFunction,Short2CharMap,SortedMap<Short,Character>
- All Known Implementing Classes:
AbstractShort2CharSortedMap,Short2CharAVLTreeMap,Short2CharLinkedOpenHashMap,Short2CharRBTreeMap,Short2CharSortedMaps.EmptySortedMap,Short2CharSortedMaps.Singleton,Short2CharSortedMaps.SynchronizedSortedMap,Short2CharSortedMaps.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.shorts.Short2CharMap
Short2CharMap.Entry, Short2CharMap.FastEntrySet -
Method Summary
Modifier and TypeMethodDescriptionit.unimi.dsi.fastutil.shorts.ShortComparatorReturns the comparator associated with this sorted set, or null if it uses its keys' natural ordering.entrySet()Deprecated.Please use the corresponding type-specific method instead.default ShortfirstKey()Deprecated.Please use the corresponding type-specific method instead.shortReturns the first (lowest) key currently in this map.headMap(short toKey) Returns a view of the portion of this sorted map whose keys are strictly less thantoKey.default Short2CharSortedMapDeprecated.Please use the corresponding type-specific method instead.it.unimi.dsi.fastutil.shorts.ShortSortedSetkeySet()Returns a type-specific sorted-set view of the keys contained in this map.default ShortlastKey()Deprecated.Please use the corresponding type-specific method instead.shortReturns the last (highest) key currently in this map.it.unimi.dsi.fastutil.objects.ObjectSortedSet<Short2CharMap.Entry> Returns a type-specific sorted-set view of the mappings contained in this map.subMap(short fromKey, short toKey) Returns a view of the portion of this sorted map whose keys range fromfromKey, inclusive, totoKey, exclusive.default Short2CharSortedMapDeprecated.Please use the corresponding type-specific method instead.tailMap(short fromKey) Returns a view of the portion of this sorted map whose keys are greater than or equal tofromKey.default Short2CharSortedMapDeprecated.Please use the corresponding type-specific method instead.it.unimi.dsi.fastutil.chars.CharCollectionvalues()Returns a type-specific set view of the values contained in this map.Methods inherited from interface it.unimi.dsi.fastutil.Function
applyMethods inherited from interface java.util.function.IntUnaryOperator
andThen, composeMethods inherited from interface java.util.Map
clear, containsKey, equals, get, getOrDefault, hashCode, isEmpty, put, putAll, remove, replaceAll, sizeMethods inherited from interface java.util.SequencedMap
firstEntry, lastEntry, pollFirstEntry, pollLastEntry, sequencedEntrySet, sequencedKeySet, sequencedValuesMethods inherited from interface it.unimi.dsi.fastutil.shorts.Short2CharFunction
andThen, andThenByte, andThenChar, andThenDouble, andThenFloat, andThenInt, andThenLong, andThenObject, andThenReference, andThenShort, applyAsInt, compose, composeByte, composeChar, composeDouble, composeFloat, composeInt, composeLong, composeObject, composeReference, composeShort, get, put, removeMethods inherited from interface it.unimi.dsi.fastutil.shorts.Short2CharMap
clear, compute, compute, computeIfAbsent, computeIfAbsent, computeIfAbsent, computeIfAbsentNullable, computeIfAbsentPartial, computeIfPresent, computeIfPresent, containsKey, containsKey, containsValue, containsValue, defaultReturnValue, defaultReturnValue, forEach, forEach, get, getOrDefault, getOrDefault, merge, merge, mergeChar, mergeChar, put, putIfAbsent, putIfAbsent, remove, remove, remove, replace, replace, replace, replace, size
-
Method Details
-
subMap
Returns a view of the portion of this sorted map whose keys range fromfromKey, inclusive, totoKey, exclusive.- See Also:
-
headMap
Returns a view of the portion of this sorted map whose keys are strictly less thantoKey.- See Also:
-
tailMap
Returns a view of the portion of this sorted map whose keys are greater than or equal tofromKey.- See Also:
-
firstShortKey
short firstShortKey()Returns the first (lowest) key currently in this map.- See Also:
-
lastShortKey
short lastShortKey()Returns the last (highest) key currently in this map.- See Also:
-
subMap
Deprecated.Please use the corresponding type-specific method instead. -
headMap
Deprecated.Please use the corresponding type-specific method instead. -
tailMap
Deprecated.Please use the corresponding type-specific method instead. -
firstKey
Deprecated.Please use the corresponding type-specific method instead. -
lastKey
Deprecated.Please use the corresponding type-specific method instead. -
entrySet
@Deprecated default it.unimi.dsi.fastutil.objects.ObjectSortedSet<Map.Entry<Short,Character>> entrySet()Deprecated.Please use the corresponding type-specific method instead.Returns a sorted-set view of the mappings contained in this map. -
short2CharEntrySet
it.unimi.dsi.fastutil.objects.ObjectSortedSet<Short2CharMap.Entry> short2CharEntrySet()Returns a type-specific sorted-set view of the mappings contained in this map.- Specified by:
short2CharEntrySetin interfaceShort2CharMap- Returns:
- a type-specific sorted-set view of the mappings contained in this map.
- See Also:
-
keySet
it.unimi.dsi.fastutil.shorts.ShortSortedSet keySet()Returns a type-specific sorted-set view of the keys contained in this map. -
values
it.unimi.dsi.fastutil.chars.CharCollection values()Returns a type-specific set view of the values contained in this map. -
comparator
it.unimi.dsi.fastutil.shorts.ShortComparator comparator()Returns the comparator associated with this sorted set, or null if it uses its keys' natural ordering.- Specified by:
comparatorin interfaceSortedMap<Short,Character> - See Also:
-