Class Double2ObjectSortedMaps.Singleton<V>
- java.lang.Object
-
- it.unimi.dsi.fastutil.doubles.AbstractDouble2ObjectFunction<V>
-
- it.unimi.dsi.fastutil.doubles.Double2ObjectFunctions.Singleton<V>
-
- it.unimi.dsi.fastutil.doubles.Double2ObjectMaps.Singleton<V>
-
- it.unimi.dsi.fastutil.doubles.Double2ObjectSortedMaps.Singleton<V>
-
- All Implemented Interfaces:
Double2ObjectFunction<V>
,Double2ObjectMap<V>
,Double2ObjectSortedMap<V>
,Function<java.lang.Double,V>
,java.io.Serializable
,java.lang.Cloneable
,java.util.function.DoubleFunction<V>
,java.util.function.Function<java.lang.Double,V>
,java.util.Map<java.lang.Double,V>
,java.util.SortedMap<java.lang.Double,V>
- Enclosing class:
- Double2ObjectSortedMaps
public static class Double2ObjectSortedMaps.Singleton<V> extends Double2ObjectMaps.Singleton<V> implements Double2ObjectSortedMap<V>, java.io.Serializable, java.lang.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.Double2ObjectMap
Double2ObjectMap.Entry<V>, Double2ObjectMap.FastEntrySet<V>
-
Nested classes/interfaces inherited from interface it.unimi.dsi.fastutil.doubles.Double2ObjectSortedMap
Double2ObjectSortedMap.FastSortedEntrySet<V>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description DoubleComparator
comparator()
Returns the comparator associated with this sorted set, or null if it uses its keys' natural ordering.ObjectSortedSet<Double2ObjectMap.Entry<V>>
double2ObjectEntrySet()
Returns a type-specific set view of the mappings contained in this map.ObjectSortedSet<java.util.Map.Entry<java.lang.Double,V>>
entrySet()
Deprecated.Please use the corresponding type-specific method instead.double
firstDoubleKey()
Returns the first (lowest) key currently in this map.java.lang.Double
firstKey()
Deprecated.Please use the corresponding type-specific method instead.Double2ObjectSortedMap<V>
headMap(double to)
Returns a view of the portion of this sorted map whose keys are strictly less thantoKey
.Double2ObjectSortedMap<V>
headMap(java.lang.Double oto)
Deprecated.Please use the corresponding type-specific method instead.DoubleSortedSet
keySet()
double
lastDoubleKey()
Returns the last (highest) key currently in this map.java.lang.Double
lastKey()
Deprecated.Please use the corresponding type-specific method instead.Double2ObjectSortedMap<V>
subMap(double from, double to)
Returns a view of the portion of this sorted map whose keys range fromfromKey
, inclusive, totoKey
, exclusive.Double2ObjectSortedMap<V>
subMap(java.lang.Double ofrom, java.lang.Double oto)
Deprecated.Please use the corresponding type-specific method instead.Double2ObjectSortedMap<V>
tailMap(double from)
Returns a view of the portion of this sorted map whose keys are greater than or equal tofromKey
.Double2ObjectSortedMap<V>
tailMap(java.lang.Double ofrom)
Deprecated.Please use the corresponding type-specific method instead.-
Methods inherited from class it.unimi.dsi.fastutil.doubles.Double2ObjectMaps.Singleton
containsValue, equals, hashCode, isEmpty, putAll, toString, values
-
Methods inherited from class it.unimi.dsi.fastutil.doubles.Double2ObjectFunctions.Singleton
clone, containsKey, get, size
-
Methods inherited from class it.unimi.dsi.fastutil.doubles.AbstractDouble2ObjectFunction
defaultReturnValue, defaultReturnValue
-
Methods inherited from interface it.unimi.dsi.fastutil.doubles.Double2ObjectFunction
andThen, andThen, andThen, andThen, andThen, andThen, andThen, andThen, andThen, apply, compose, compose, compose, compose, compose, compose, compose, compose, compose, get, put, remove
-
Methods inherited from interface it.unimi.dsi.fastutil.doubles.Double2ObjectMap
clear, compute, compute, computeIfAbsent, computeIfAbsent, computeIfAbsentPartial, computeIfPresent, computeIfPresent, containsKey, containsKey, 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.Double2ObjectSortedMap
values
-
-
-
-
Method Detail
-
comparator
public DoubleComparator comparator()
Description copied from interface:Double2ObjectSortedMap
Returns 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:
comparator
in interfaceDouble2ObjectSortedMap<V>
- Specified by:
comparator
in interfacejava.util.SortedMap<java.lang.Double,V>
- See Also:
SortedMap.comparator()
-
double2ObjectEntrySet
public ObjectSortedSet<Double2ObjectMap.Entry<V>> double2ObjectEntrySet()
Description copied from interface:Double2ObjectMap
Returns 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 anObjectSet
of type-specific entries (the latter makes it possible to access keys and values with type-specific methods).- Specified by:
double2ObjectEntrySet
in interfaceDouble2ObjectMap<V>
- Specified by:
double2ObjectEntrySet
in interfaceDouble2ObjectSortedMap<V>
- Overrides:
double2ObjectEntrySet
in classDouble2ObjectMaps.Singleton<V>
- Returns:
- a type-specific set view of the mappings contained in this map.
- See Also:
Map.entrySet()
-
entrySet
@Deprecated public ObjectSortedSet<java.util.Map.Entry<java.lang.Double,V>> 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:
entrySet
in interfaceDouble2ObjectMap<V>
- Specified by:
entrySet
in interfaceDouble2ObjectSortedMap<V>
- Specified by:
entrySet
in interfacejava.util.Map<java.lang.Double,V>
- Specified by:
entrySet
in interfacejava.util.SortedMap<java.lang.Double,V>
- Overrides:
entrySet
in classDouble2ObjectMaps.Singleton<V>
- Returns:
- a set view of the mappings contained in this map.
- See Also:
Map.entrySet()
-
keySet
public DoubleSortedSet keySet()
Description copied from interface:Double2ObjectMap
Note that this specification strengthens the one given in
Map.keySet()
.- Specified by:
keySet
in interfaceDouble2ObjectMap<V>
- Specified by:
keySet
in interfaceDouble2ObjectSortedMap<V>
- Specified by:
keySet
in interfacejava.util.Map<java.lang.Double,V>
- Specified by:
keySet
in interfacejava.util.SortedMap<java.lang.Double,V>
- Overrides:
keySet
in classDouble2ObjectMaps.Singleton<V>
- Returns:
- a set view of the keys contained in this map.
- See Also:
Map.keySet()
-
subMap
public Double2ObjectSortedMap<V> subMap(double from, double to)
Description copied from interface:Double2ObjectSortedMap
Returns 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:
subMap
in interfaceDouble2ObjectSortedMap<V>
- See Also:
SortedMap.subMap(Object,Object)
-
headMap
public Double2ObjectSortedMap<V> headMap(double to)
Description copied from interface:Double2ObjectSortedMap
Returns 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:
headMap
in interfaceDouble2ObjectSortedMap<V>
- See Also:
SortedMap.headMap(Object)
-
tailMap
public Double2ObjectSortedMap<V> tailMap(double from)
Description copied from interface:Double2ObjectSortedMap
Returns 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:
tailMap
in interfaceDouble2ObjectSortedMap<V>
- See Also:
SortedMap.tailMap(Object)
-
firstDoubleKey
public double firstDoubleKey()
Description copied from interface:Double2ObjectSortedMap
Returns the first (lowest) key currently in this map.- Specified by:
firstDoubleKey
in interfaceDouble2ObjectSortedMap<V>
- See Also:
SortedMap.firstKey()
-
lastDoubleKey
public double lastDoubleKey()
Description copied from interface:Double2ObjectSortedMap
Returns the last (highest) key currently in this map.- Specified by:
lastDoubleKey
in interfaceDouble2ObjectSortedMap<V>
- See Also:
SortedMap.lastKey()
-
headMap
@Deprecated public Double2ObjectSortedMap<V> headMap(java.lang.Double oto)
Deprecated.Please use the corresponding type-specific method instead.Note that this specification strengthens the one given in
SortedMap.headMap(Object)
.- Specified by:
headMap
in interfaceDouble2ObjectSortedMap<V>
- Specified by:
headMap
in interfacejava.util.SortedMap<java.lang.Double,V>
-
tailMap
@Deprecated public Double2ObjectSortedMap<V> tailMap(java.lang.Double ofrom)
Deprecated.Please use the corresponding type-specific method instead.Note that this specification strengthens the one given in
SortedMap.tailMap(Object)
.- Specified by:
tailMap
in interfaceDouble2ObjectSortedMap<V>
- Specified by:
tailMap
in interfacejava.util.SortedMap<java.lang.Double,V>
-
subMap
@Deprecated public Double2ObjectSortedMap<V> subMap(java.lang.Double ofrom, java.lang.Double oto)
Deprecated.Please use the corresponding type-specific method instead.Note that this specification strengthens the one given in
SortedMap.subMap(Object,Object)
.- Specified by:
subMap
in interfaceDouble2ObjectSortedMap<V>
- Specified by:
subMap
in interfacejava.util.SortedMap<java.lang.Double,V>
-
firstKey
@Deprecated public java.lang.Double firstKey()
Deprecated.Please use the corresponding type-specific method instead.- Specified by:
firstKey
in interfaceDouble2ObjectSortedMap<V>
- Specified by:
firstKey
in interfacejava.util.SortedMap<java.lang.Double,V>
-
lastKey
@Deprecated public java.lang.Double lastKey()
Deprecated.Please use the corresponding type-specific method instead.- Specified by:
lastKey
in interfaceDouble2ObjectSortedMap<V>
- Specified by:
lastKey
in interfacejava.util.SortedMap<java.lang.Double,V>
-
-