Package it.unimi.dsi.fastutil.doubles
Interface Double2CharSortedMap
- All Superinterfaces:
Double2CharFunction,Double2CharMap,DoubleToIntFunction,Function<Double,,Character> Function<Double,,Character> Map<Double,,Character> SequencedMap<Double,,Character> SortedMap<Double,Character>
- All Known Implementing Classes:
AbstractDouble2CharSortedMap,Double2CharAVLTreeMap,Double2CharLinkedOpenHashMap,Double2CharRBTreeMap,Double2CharSortedMaps.EmptySortedMap,Double2CharSortedMaps.Singleton,Double2CharSortedMaps.SynchronizedSortedMap,Double2CharSortedMaps.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.doubles.Double2CharMap
Double2CharMap.Entry, Double2CharMap.FastEntrySet -
Method Summary
Modifier and TypeMethodDescriptionReturns the comparator associated with this sorted set, or null if it uses its keys' natural ordering.Returns a type-specific sorted-set view of the mappings contained in this map.default ObjectSortedSet<Map.Entry<Double, Character>> entrySet()Deprecated.Please use the corresponding type-specific method instead.doubleReturns the first (lowest) key currently in this map.default DoublefirstKey()Deprecated.Please use the corresponding type-specific method instead.headMap(double toKey) Returns a view of the portion of this sorted map whose keys are strictly less thantoKey.default Double2CharSortedMapDeprecated.Please use the corresponding type-specific method instead.keySet()Returns a type-specific sorted-set view of the keys contained in this map.doubleReturns the last (highest) key currently in this map.default DoublelastKey()Deprecated.Please use the corresponding type-specific method instead.subMap(double fromKey, double toKey) Returns a view of the portion of this sorted map whose keys range fromfromKey, inclusive, totoKey, exclusive.default Double2CharSortedMapDeprecated.Please use the corresponding type-specific method instead.tailMap(double fromKey) Returns a view of the portion of this sorted map whose keys are greater than or equal tofromKey.default Double2CharSortedMapDeprecated.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.doubles.Double2CharFunction
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.doubles.Double2CharMap
clear, compute, compute, computeIfAbsent, computeIfAbsent, computeIfAbsent, computeIfAbsentNullable, computeIfAbsentPartial, computeIfPresent, computeIfPresent, containsKey, containsKey, containsValue, containsValue, defaultReturnValue, defaultReturnValue, forEach, get, getOrDefault, getOrDefault, merge, merge, mergeChar, mergeChar, put, putIfAbsent, putIfAbsent, remove, remove, remove, replace, replace, replace, replace, sizeMethods 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, 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).
-
firstDoubleKey
double firstDoubleKey()Returns the first (lowest) key currently in this map.- See Also:
-
lastDoubleKey
double lastDoubleKey()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<Double,Character> - 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<Double,Character> - 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<Double,Character> - API Notes:
- Note that this specification strengthens the one given in
SortedMap.tailMap(Object).
-
firstKey
Deprecated.Please use the corresponding type-specific method instead. -
lastKey
Deprecated.Please use the corresponding type-specific method instead. -
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 interfaceDouble2CharMap- Specified by:
entrySetin interfaceMap<Double,Character> - Specified by:
entrySetin interfaceSortedMap<Double,Character> - 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.
-
double2CharEntrySet
ObjectSortedSet<Double2CharMap.Entry> double2CharEntrySet()Returns a type-specific sorted-set view of the mappings contained in this map.- Specified by:
double2CharEntrySetin interfaceDouble2CharMap- 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
DoubleSortedSet keySet()Returns a type-specific sorted-set view of the keys contained in this map.- Specified by:
keySetin interfaceDouble2CharMap- Specified by:
keySetin interfaceMap<Double,Character> - Specified by:
keySetin interfaceSortedMap<Double,Character> - 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
CharCollection values()Returns a type-specific set view of the values contained in this map.- Specified by:
valuesin interfaceDouble2CharMap- Specified by:
valuesin interfaceMap<Double,Character> - Specified by:
valuesin interfaceSortedMap<Double,Character> - 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
DoubleComparator comparator()Returns the comparator associated with this sorted set, or null if it uses its keys' natural ordering.- Specified by:
comparatorin interfaceSortedMap<Double,Character> - See Also:
- API Notes:
- Note that this specification strengthens the one given in
SortedMap.comparator().
-