Class Double2LongSortedMaps.Singleton
- java.lang.Object
-
- it.unimi.dsi.fastutil.doubles.AbstractDouble2LongFunction
-
- it.unimi.dsi.fastutil.doubles.Double2LongFunctions.Singleton
-
- it.unimi.dsi.fastutil.doubles.Double2LongMaps.Singleton
-
- it.unimi.dsi.fastutil.doubles.Double2LongSortedMaps.Singleton
-
- All Implemented Interfaces:
Double2LongFunction,Double2LongMap,Double2LongSortedMap,Function<Double,Long>,Serializable,Cloneable,DoubleToLongFunction,Function<Double,Long>,Map<Double,Long>,SortedMap<Double,Long>
- Enclosing class:
- Double2LongSortedMaps
public static class Double2LongSortedMaps.Singleton extends Double2LongMaps.Singleton implements Double2LongSortedMap, Serializable, Cloneable
An immutable class representing a type-specific singleton sorted map.This class may be useful to implement your own in case you subclass a type-specific sorted map.
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface it.unimi.dsi.fastutil.doubles.Double2LongMap
Double2LongMap.Entry, Double2LongMap.FastEntrySet
-
Nested classes/interfaces inherited from interface it.unimi.dsi.fastutil.doubles.Double2LongSortedMap
Double2LongSortedMap.FastSortedEntrySet
-
-
Method Summary
Modifier and Type Method Description DoubleComparatorcomparator()Returns the comparator associated with this sorted set, or null if it uses its keys' natural ordering.ObjectSortedSet<Double2LongMap.Entry>double2LongEntrySet()Returns a type-specific set view of the mappings contained in this map.ObjectSortedSet<Map.Entry<Double,Long>>entrySet()Deprecated.Please use the corresponding type-specific method instead.doublefirstDoubleKey()Returns the first (lowest) key currently in this map.DoublefirstKey()Deprecated.Please use the corresponding type-specific method instead.Double2LongSortedMapheadMap(double to)Returns a view of the portion of this sorted map whose keys are strictly less thantoKey.Double2LongSortedMapheadMap(Double oto)Deprecated.Please use the corresponding type-specific method instead.DoubleSortedSetkeySet()doublelastDoubleKey()Returns the last (highest) key currently in this map.DoublelastKey()Deprecated.Please use the corresponding type-specific method instead.Double2LongSortedMapsubMap(double from, double to)Returns a view of the portion of this sorted map whose keys range fromfromKey, inclusive, totoKey, exclusive.Double2LongSortedMapsubMap(Double ofrom, Double oto)Deprecated.Please use the corresponding type-specific method instead.Double2LongSortedMaptailMap(double from)Returns a view of the portion of this sorted map whose keys are greater than or equal tofromKey.Double2LongSortedMaptailMap(Double ofrom)Deprecated.Please use the corresponding type-specific method instead.-
Methods inherited from class it.unimi.dsi.fastutil.doubles.Double2LongMaps.Singleton
containsValue, containsValue, equals, hashCode, isEmpty, putAll, toString, values
-
Methods inherited from class it.unimi.dsi.fastutil.doubles.Double2LongFunctions.Singleton
clone, containsKey, get, size
-
Methods inherited from class it.unimi.dsi.fastutil.doubles.AbstractDouble2LongFunction
defaultReturnValue, defaultReturnValue
-
Methods inherited from interface it.unimi.dsi.fastutil.doubles.Double2LongFunction
applyAsLong, get, put, remove
-
Methods inherited from interface it.unimi.dsi.fastutil.doubles.Double2LongMap
clear, compute, compute, computeIfAbsent, computeIfAbsent, computeIfAbsentNullable, computeIfAbsentPartial, computeIfPresent, computeIfPresent, containsKey, containsKey, containsValue, containsValue, defaultReturnValue, defaultReturnValue, get, getOrDefault, getOrDefault, merge, merge, put, putIfAbsent, putIfAbsent, remove, remove, remove, replace, replace, replace, replace, size
-
Methods inherited from interface it.unimi.dsi.fastutil.doubles.Double2LongSortedMap
values
-
-
-
-
Method Detail
-
comparator
public DoubleComparator comparator()
Description copied from interface:Double2LongSortedMapReturns the comparator associated with this sorted set, or null if it uses its keys' natural ordering.Note that this specification strengthens the one given in
SortedMap.comparator().- Specified by:
comparatorin interfaceDouble2LongSortedMap- Specified by:
comparatorin interfaceSortedMap<Double,Long>- See Also:
SortedMap.comparator()
-
double2LongEntrySet
public ObjectSortedSet<Double2LongMap.Entry> double2LongEntrySet()
Description copied from interface:Double2LongMapReturns a type-specific set view of the mappings contained in this map.This method is necessary because there is no inheritance along type parameters: it is thus impossible to strengthen
Map.entrySet()so that it returns anObjectSetof type-specific entries (the latter makes it possible to access keys and values with type-specific methods).- Specified by:
double2LongEntrySetin interfaceDouble2LongMap- Specified by:
double2LongEntrySetin interfaceDouble2LongSortedMap- Overrides:
double2LongEntrySetin classDouble2LongMaps.Singleton- Returns:
- a type-specific set view of the mappings contained in this map.
- See Also:
Map.entrySet()
-
entrySet
@Deprecated public ObjectSortedSet<Map.Entry<Double,Long>> entrySet()
Deprecated.Please use the corresponding type-specific method instead.Returns a set view of the mappings contained in this map.Note that this specification strengthens the one given in
Map.entrySet().- Specified by:
entrySetin interfaceDouble2LongMap- Specified by:
entrySetin interfaceDouble2LongSortedMap- Specified by:
entrySetin interfaceMap<Double,Long>- Specified by:
entrySetin interfaceSortedMap<Double,Long>- Overrides:
entrySetin classDouble2LongMaps.Singleton- Returns:
- a set view of the mappings contained in this map.
- See Also:
Map.entrySet()
-
keySet
public DoubleSortedSet keySet()
Description copied from interface:Double2LongMapNote that this specification strengthens the one given in
Map.keySet().- Specified by:
keySetin interfaceDouble2LongMap- Specified by:
keySetin interfaceDouble2LongSortedMap- Specified by:
keySetin interfaceMap<Double,Long>- Specified by:
keySetin interfaceSortedMap<Double,Long>- Overrides:
keySetin classDouble2LongMaps.Singleton- Returns:
- a set view of the keys contained in this map.
- See Also:
Map.keySet()
-
subMap
public Double2LongSortedMap subMap(double from, double to)
Description copied from interface:Double2LongSortedMapReturns a view of the portion of this sorted map whose keys range fromfromKey, inclusive, totoKey, exclusive.Note that this specification strengthens the one given in
SortedMap.subMap(Object,Object).- Specified by:
subMapin interfaceDouble2LongSortedMap- See Also:
SortedMap.subMap(Object,Object)
-
headMap
public Double2LongSortedMap headMap(double to)
Description copied from interface:Double2LongSortedMapReturns a view of the portion of this sorted map whose keys are strictly less thantoKey.Note that this specification strengthens the one given in
SortedMap.headMap(Object).- Specified by:
headMapin interfaceDouble2LongSortedMap- See Also:
SortedMap.headMap(Object)
-
tailMap
public Double2LongSortedMap tailMap(double from)
Description copied from interface:Double2LongSortedMapReturns a view of the portion of this sorted map whose keys are greater than or equal tofromKey.Note that this specification strengthens the one given in
SortedMap.tailMap(Object).- Specified by:
tailMapin interfaceDouble2LongSortedMap- See Also:
SortedMap.tailMap(Object)
-
firstDoubleKey
public double firstDoubleKey()
Description copied from interface:Double2LongSortedMapReturns the first (lowest) key currently in this map.- Specified by:
firstDoubleKeyin interfaceDouble2LongSortedMap- See Also:
SortedMap.firstKey()
-
lastDoubleKey
public double lastDoubleKey()
Description copied from interface:Double2LongSortedMapReturns the last (highest) key currently in this map.- Specified by:
lastDoubleKeyin interfaceDouble2LongSortedMap- See Also:
SortedMap.lastKey()
-
headMap
@Deprecated public Double2LongSortedMap headMap(Double oto)
Deprecated.Please use the corresponding type-specific method instead.Note that this specification strengthens the one given in
SortedMap.headMap(Object).
-
tailMap
@Deprecated public Double2LongSortedMap tailMap(Double ofrom)
Deprecated.Please use the corresponding type-specific method instead.Note that this specification strengthens the one given in
SortedMap.tailMap(Object).
-
subMap
@Deprecated public Double2LongSortedMap subMap(Double ofrom, Double oto)
Deprecated.Please use the corresponding type-specific method instead.Note that this specification strengthens the one given in
SortedMap.subMap(Object,Object).
-
firstKey
@Deprecated public Double firstKey()
Deprecated.Please use the corresponding type-specific method instead.
-
lastKey
@Deprecated public Double lastKey()
Deprecated.Please use the corresponding type-specific method instead.
-
-