Package it.unimi.dsi.fastutil.doubles
Interface Double2BooleanSortedMap
- All Superinterfaces:
it.unimi.dsi.fastutil.doubles.Double2BooleanFunction,Double2BooleanMap,DoublePredicate,it.unimi.dsi.fastutil.Function<Double,,Boolean> Function<Double,,Boolean> Map<Double,,Boolean> SequencedMap<Double,,Boolean> SortedMap<Double,Boolean>
- All Known Implementing Classes:
AbstractDouble2BooleanSortedMap,Double2BooleanAVLTreeMap,Double2BooleanLinkedOpenHashMap,Double2BooleanRBTreeMap,Double2BooleanSortedMaps.EmptySortedMap,Double2BooleanSortedMaps.Singleton,Double2BooleanSortedMaps.SynchronizedSortedMap,Double2BooleanSortedMaps.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.Double2BooleanMap
Double2BooleanMap.Entry, Double2BooleanMap.FastEntrySet -
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<Double2BooleanMap.Entry> 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 Double2BooleanSortedMapDeprecated.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 Double2BooleanSortedMapDeprecated.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 Double2BooleanSortedMapDeprecated.Please use the corresponding type-specific method instead.it.unimi.dsi.fastutil.booleans.BooleanCollectionvalues()Returns a type-specific set view of the values contained in this map.Methods inherited from interface it.unimi.dsi.fastutil.doubles.Double2BooleanFunction
andThen, andThenByte, andThenChar, andThenDouble, andThenFloat, andThenInt, andThenLong, andThenObject, andThenReference, andThenShort, compose, composeByte, composeChar, composeDouble, composeFloat, composeInt, composeLong, composeObject, composeReference, composeShort, get, put, remove, testMethods inherited from interface it.unimi.dsi.fastutil.doubles.Double2BooleanMap
clear, compute, computeIfAbsent, computeIfAbsent, computeIfAbsentNullable, computeIfAbsentPartial, computeIfPresent, containsKey, containsKey, containsValue, containsValue, defaultReturnValue, defaultReturnValue, forEach, forEach, get, getOrDefault, getOrDefault, merge, put, putIfAbsent, remove, remove, replace, replace, sizeMethods inherited from interface java.util.function.DoublePredicate
and, negate, orMethods inherited from interface it.unimi.dsi.fastutil.Function
applyMethods inherited from interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, 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 default it.unimi.dsi.fastutil.objects.ObjectSortedSet<Map.Entry<Double,Boolean>> entrySet()Deprecated.Please use the corresponding type-specific method instead.Returns a sorted-set view of the mappings contained in this map. -
double2BooleanEntrySet
it.unimi.dsi.fastutil.objects.ObjectSortedSet<Double2BooleanMap.Entry> double2BooleanEntrySet()Returns a type-specific sorted-set view of the mappings contained in this map.- Specified by:
double2BooleanEntrySetin interfaceDouble2BooleanMap- 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.booleans.BooleanCollection 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,Boolean> - See Also:
-