Class Double2ReferenceSortedMaps.SynchronizedSortedMap<V>
- java.lang.Object
-
- it.unimi.dsi.fastutil.doubles.Double2ReferenceFunctions.SynchronizedFunction<V>
-
- it.unimi.dsi.fastutil.doubles.Double2ReferenceMaps.SynchronizedMap<V>
-
- it.unimi.dsi.fastutil.doubles.Double2ReferenceSortedMaps.SynchronizedSortedMap<V>
-
- All Implemented Interfaces:
Double2ReferenceFunction<V>
,Double2ReferenceMap<V>
,Double2ReferenceSortedMap<V>
,Function<java.lang.Double,V>
,java.io.Serializable
,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:
- Double2ReferenceSortedMaps
public static class Double2ReferenceSortedMaps.SynchronizedSortedMap<V> extends Double2ReferenceMaps.SynchronizedMap<V> implements Double2ReferenceSortedMap<V>, java.io.Serializable
A synchronized wrapper class for sorted maps.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface it.unimi.dsi.fastutil.doubles.Double2ReferenceMap
Double2ReferenceMap.Entry<V>, Double2ReferenceMap.FastEntrySet<V>
-
Nested classes/interfaces inherited from interface it.unimi.dsi.fastutil.doubles.Double2ReferenceSortedMap
Double2ReferenceSortedMap.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<Double2ReferenceMap.Entry<V>>
double2ReferenceEntrySet()
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.Double2ReferenceSortedMap<V>
headMap(double to)
Returns a view of the portion of this sorted map whose keys are strictly less thantoKey
.Double2ReferenceSortedMap<V>
headMap(java.lang.Double to)
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.Double2ReferenceSortedMap<V>
subMap(double from, double to)
Returns a view of the portion of this sorted map whose keys range fromfromKey
, inclusive, totoKey
, exclusive.Double2ReferenceSortedMap<V>
subMap(java.lang.Double from, java.lang.Double to)
Deprecated.Please use the corresponding type-specific method instead.Double2ReferenceSortedMap<V>
tailMap(double from)
Returns a view of the portion of this sorted map whose keys are greater than or equal tofromKey
.Double2ReferenceSortedMap<V>
tailMap(java.lang.Double from)
Deprecated.Please use the corresponding type-specific method instead.-
Methods inherited from class it.unimi.dsi.fastutil.doubles.Double2ReferenceMaps.SynchronizedMap
compute, compute, computeIfAbsent, computeIfAbsent, computeIfAbsentPartial, computeIfPresent, computeIfPresent, containsValue, equals, forEach, getOrDefault, getOrDefault, hashCode, isEmpty, merge, merge, putAll, putIfAbsent, putIfAbsent, remove, remove, replace, replace, replace, replace, replaceAll, values
-
Methods inherited from class it.unimi.dsi.fastutil.doubles.Double2ReferenceFunctions.SynchronizedFunction
apply, apply, clear, containsKey, containsKey, defaultReturnValue, defaultReturnValue, get, get, put, put, remove, remove, size, toString
-
Methods inherited from interface it.unimi.dsi.fastutil.doubles.Double2ReferenceFunction
andThenByte, andThenChar, andThenDouble, andThenFloat, andThenInt, andThenLong, andThenObject, andThenReference, andThenShort, apply, composeByte, composeChar, composeDouble, composeFloat, composeInt, composeLong, composeObject, composeReference, composeShort, get, put, remove
-
Methods inherited from interface it.unimi.dsi.fastutil.doubles.Double2ReferenceMap
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.Double2ReferenceSortedMap
values
-
-
-
-
Method Detail
-
comparator
public DoubleComparator comparator()
Description copied from interface:Double2ReferenceSortedMap
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 interfaceDouble2ReferenceSortedMap<V>
- Specified by:
comparator
in interfacejava.util.SortedMap<java.lang.Double,V>
- See Also:
SortedMap.comparator()
-
double2ReferenceEntrySet
public ObjectSortedSet<Double2ReferenceMap.Entry<V>> double2ReferenceEntrySet()
Description copied from interface:Double2ReferenceMap
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:
double2ReferenceEntrySet
in interfaceDouble2ReferenceMap<V>
- Specified by:
double2ReferenceEntrySet
in interfaceDouble2ReferenceSortedMap<V>
- Overrides:
double2ReferenceEntrySet
in classDouble2ReferenceMaps.SynchronizedMap<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 interfaceDouble2ReferenceMap<V>
- Specified by:
entrySet
in interfaceDouble2ReferenceSortedMap<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 classDouble2ReferenceMaps.SynchronizedMap<V>
- Returns:
- a set view of the mappings contained in this map.
- See Also:
Map.entrySet()
-
keySet
public DoubleSortedSet keySet()
Description copied from interface:Double2ReferenceMap
Note that this specification strengthens the one given in
Map.keySet()
.- Specified by:
keySet
in interfaceDouble2ReferenceMap<V>
- Specified by:
keySet
in interfaceDouble2ReferenceSortedMap<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 classDouble2ReferenceMaps.SynchronizedMap<V>
- Returns:
- a set view of the keys contained in this map.
- See Also:
Map.keySet()
-
subMap
public Double2ReferenceSortedMap<V> subMap(double from, double to)
Description copied from interface:Double2ReferenceSortedMap
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 interfaceDouble2ReferenceSortedMap<V>
- See Also:
SortedMap.subMap(Object,Object)
-
headMap
public Double2ReferenceSortedMap<V> headMap(double to)
Description copied from interface:Double2ReferenceSortedMap
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 interfaceDouble2ReferenceSortedMap<V>
- See Also:
SortedMap.headMap(Object)
-
tailMap
public Double2ReferenceSortedMap<V> tailMap(double from)
Description copied from interface:Double2ReferenceSortedMap
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 interfaceDouble2ReferenceSortedMap<V>
- See Also:
SortedMap.tailMap(Object)
-
firstDoubleKey
public double firstDoubleKey()
Description copied from interface:Double2ReferenceSortedMap
Returns the first (lowest) key currently in this map.- Specified by:
firstDoubleKey
in interfaceDouble2ReferenceSortedMap<V>
- See Also:
SortedMap.firstKey()
-
lastDoubleKey
public double lastDoubleKey()
Description copied from interface:Double2ReferenceSortedMap
Returns the last (highest) key currently in this map.- Specified by:
lastDoubleKey
in interfaceDouble2ReferenceSortedMap<V>
- See Also:
SortedMap.lastKey()
-
firstKey
@Deprecated public java.lang.Double firstKey()
Deprecated.Please use the corresponding type-specific method instead.- Specified by:
firstKey
in interfaceDouble2ReferenceSortedMap<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 interfaceDouble2ReferenceSortedMap<V>
- Specified by:
lastKey
in interfacejava.util.SortedMap<java.lang.Double,V>
-
subMap
@Deprecated public Double2ReferenceSortedMap<V> subMap(java.lang.Double from, java.lang.Double to)
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 interfaceDouble2ReferenceSortedMap<V>
- Specified by:
subMap
in interfacejava.util.SortedMap<java.lang.Double,V>
-
headMap
@Deprecated public Double2ReferenceSortedMap<V> headMap(java.lang.Double to)
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 interfaceDouble2ReferenceSortedMap<V>
- Specified by:
headMap
in interfacejava.util.SortedMap<java.lang.Double,V>
-
tailMap
@Deprecated public Double2ReferenceSortedMap<V> tailMap(java.lang.Double from)
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 interfaceDouble2ReferenceSortedMap<V>
- Specified by:
tailMap
in interfacejava.util.SortedMap<java.lang.Double,V>
-
-