Package it.unimi.dsi.fastutil.doubles
Interface Double2ReferenceSortedMap<V>
- All Superinterfaces:
it.unimi.dsi.fastutil.doubles.Double2ReferenceFunction<V>,Double2ReferenceMap<V>,DoubleFunction<V>,it.unimi.dsi.fastutil.Function<Double,,V> Function<Double,,V> Map<Double,,V> SequencedMap<Double,,V> SortedMap<Double,V>
- All Known Implementing Classes:
AbstractDouble2ReferenceSortedMap,Double2ReferenceAVLTreeMap,Double2ReferenceLinkedOpenHashMap,Double2ReferenceRBTreeMap,Double2ReferenceSortedMaps.EmptySortedMap,Double2ReferenceSortedMaps.Singleton,Double2ReferenceSortedMaps.SynchronizedSortedMap,Double2ReferenceSortedMaps.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.Double2ReferenceMap
Double2ReferenceMap.Entry<V>, Double2ReferenceMap.FastEntrySet<V> -
Method Summary
Modifier and TypeMethodDescriptionit.unimi.dsi.fastutil.doubles.DoubleComparatorReturns the comparator associated with this sorted set, or null if it uses its keys' natural ordering.it.unimi.dsi.fastutil.objects.ObjectSortedSet<Double2ReferenceMap.Entry<V>> Returns a type-specific sorted-set view of the mappings contained in this map.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 Double2ReferenceSortedMap<V> Deprecated.Please use the corresponding type-specific method instead.it.unimi.dsi.fastutil.doubles.DoubleSortedSetkeySet()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 Double2ReferenceSortedMap<V> Deprecated.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 Double2ReferenceSortedMap<V> Deprecated.Please use the corresponding type-specific method instead.it.unimi.dsi.fastutil.objects.ReferenceCollection<V> values()Returns a type-specific set view of the values contained in this map.Methods inherited from interface it.unimi.dsi.fastutil.doubles.Double2ReferenceFunction
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.doubles.Double2ReferenceMap
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 it.unimi.dsi.fastutil.Function
applyMethods 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:
-
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:
-
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. -
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.Please use the corresponding type-specific method instead.Returns a sorted-set view of the mappings contained in this map. -
double2ReferenceEntrySet
it.unimi.dsi.fastutil.objects.ObjectSortedSet<Double2ReferenceMap.Entry<V>> double2ReferenceEntrySet()Returns a type-specific sorted-set view of the mappings contained in this map.- Specified by:
double2ReferenceEntrySetin interfaceDouble2ReferenceMap<V>- Returns:
- a type-specific sorted-set view of the mappings contained in this map.
- See Also:
-
keySet
it.unimi.dsi.fastutil.doubles.DoubleSortedSet keySet()Returns a type-specific sorted-set view of the keys contained in this map. -
values
it.unimi.dsi.fastutil.objects.ReferenceCollection<V> values()Returns a type-specific set view of the values contained in this map. -
comparator
it.unimi.dsi.fastutil.doubles.DoubleComparator comparator()Returns the comparator associated with this sorted set, or null if it uses its keys' natural ordering.- Specified by:
comparatorin interfaceSortedMap<Double,V> - See Also:
-