Class Double2DoubleSortedMaps.UnmodifiableSortedMap
- java.lang.Object
-
- it.unimi.dsi.fastutil.doubles.AbstractDouble2DoubleFunction
-
- it.unimi.dsi.fastutil.doubles.Double2DoubleFunctions.UnmodifiableFunction
-
- it.unimi.dsi.fastutil.doubles.Double2DoubleMaps.UnmodifiableMap
-
- it.unimi.dsi.fastutil.doubles.Double2DoubleSortedMaps.UnmodifiableSortedMap
-
- All Implemented Interfaces:
Double2DoubleFunction
,Double2DoubleMap
,Double2DoubleSortedMap
,Function<java.lang.Double,java.lang.Double>
,java.io.Serializable
,java.util.function.DoubleUnaryOperator
,java.util.function.Function<java.lang.Double,java.lang.Double>
,java.util.Map<java.lang.Double,java.lang.Double>
,java.util.SortedMap<java.lang.Double,java.lang.Double>
- Enclosing class:
- Double2DoubleSortedMaps
public static class Double2DoubleSortedMaps.UnmodifiableSortedMap extends Double2DoubleMaps.UnmodifiableMap implements Double2DoubleSortedMap, java.io.Serializable
An unmodifiable wrapper class for sorted maps.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface it.unimi.dsi.fastutil.doubles.Double2DoubleMap
Double2DoubleMap.Entry, Double2DoubleMap.FastEntrySet
-
Nested classes/interfaces inherited from interface it.unimi.dsi.fastutil.doubles.Double2DoubleSortedMap
Double2DoubleSortedMap.FastSortedEntrySet
-
-
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<Double2DoubleMap.Entry>
double2DoubleEntrySet()
Returns a type-specific set view of the mappings contained in this map.ObjectSortedSet<java.util.Map.Entry<java.lang.Double,java.lang.Double>>
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.Double2DoubleSortedMap
headMap(double to)
Returns a view of the portion of this sorted map whose keys are strictly less thantoKey
.Double2DoubleSortedMap
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.Double2DoubleSortedMap
subMap(double from, double to)
Returns a view of the portion of this sorted map whose keys range fromfromKey
, inclusive, totoKey
, exclusive.Double2DoubleSortedMap
subMap(java.lang.Double from, java.lang.Double to)
Deprecated.Please use the corresponding type-specific method instead.Double2DoubleSortedMap
tailMap(double from)
Returns a view of the portion of this sorted map whose keys are greater than or equal tofromKey
.Double2DoubleSortedMap
tailMap(java.lang.Double from)
Deprecated.Please use the corresponding type-specific method instead.-
Methods inherited from class it.unimi.dsi.fastutil.doubles.Double2DoubleMaps.UnmodifiableMap
compute, compute, computeIfAbsent, computeIfAbsent, computeIfAbsentNullable, computeIfAbsentPartial, computeIfPresent, computeIfPresent, containsValue, 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.Double2DoubleFunctions.UnmodifiableFunction
clear, containsKey, defaultReturnValue, defaultReturnValue, get, get, put, put, remove, remove, size, toString
-
Methods inherited from interface it.unimi.dsi.fastutil.doubles.Double2DoubleFunction
andThen, andThen, andThen, andThen, andThen, andThen, andThen, andThen, andThen, applyAsDouble, compose, compose, compose, compose, compose, compose, compose, compose, compose, get, put, remove
-
Methods inherited from interface it.unimi.dsi.fastutil.doubles.Double2DoubleMap
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.Double2DoubleSortedMap
values
-
-
-
-
Method Detail
-
comparator
public DoubleComparator comparator()
Description copied from interface:Double2DoubleSortedMap
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 interfaceDouble2DoubleSortedMap
- Specified by:
comparator
in interfacejava.util.SortedMap<java.lang.Double,java.lang.Double>
- See Also:
SortedMap.comparator()
-
double2DoubleEntrySet
public ObjectSortedSet<Double2DoubleMap.Entry> double2DoubleEntrySet()
Description copied from interface:Double2DoubleMap
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:
double2DoubleEntrySet
in interfaceDouble2DoubleMap
- Specified by:
double2DoubleEntrySet
in interfaceDouble2DoubleSortedMap
- Overrides:
double2DoubleEntrySet
in classDouble2DoubleMaps.UnmodifiableMap
- 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,java.lang.Double>> 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 interfaceDouble2DoubleMap
- Specified by:
entrySet
in interfaceDouble2DoubleSortedMap
- Specified by:
entrySet
in interfacejava.util.Map<java.lang.Double,java.lang.Double>
- Specified by:
entrySet
in interfacejava.util.SortedMap<java.lang.Double,java.lang.Double>
- Overrides:
entrySet
in classDouble2DoubleMaps.UnmodifiableMap
- Returns:
- a set view of the mappings contained in this map.
- See Also:
Map.entrySet()
-
keySet
public DoubleSortedSet keySet()
Description copied from interface:Double2DoubleMap
Note that this specification strengthens the one given in
Map.keySet()
.- Specified by:
keySet
in interfaceDouble2DoubleMap
- Specified by:
keySet
in interfaceDouble2DoubleSortedMap
- Specified by:
keySet
in interfacejava.util.Map<java.lang.Double,java.lang.Double>
- Specified by:
keySet
in interfacejava.util.SortedMap<java.lang.Double,java.lang.Double>
- Overrides:
keySet
in classDouble2DoubleMaps.UnmodifiableMap
- Returns:
- a set view of the keys contained in this map.
- See Also:
Map.keySet()
-
subMap
public Double2DoubleSortedMap subMap(double from, double to)
Description copied from interface:Double2DoubleSortedMap
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 interfaceDouble2DoubleSortedMap
- See Also:
SortedMap.subMap(Object,Object)
-
headMap
public Double2DoubleSortedMap headMap(double to)
Description copied from interface:Double2DoubleSortedMap
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 interfaceDouble2DoubleSortedMap
- See Also:
SortedMap.headMap(Object)
-
tailMap
public Double2DoubleSortedMap tailMap(double from)
Description copied from interface:Double2DoubleSortedMap
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 interfaceDouble2DoubleSortedMap
- See Also:
SortedMap.tailMap(Object)
-
firstDoubleKey
public double firstDoubleKey()
Description copied from interface:Double2DoubleSortedMap
Returns the first (lowest) key currently in this map.- Specified by:
firstDoubleKey
in interfaceDouble2DoubleSortedMap
- See Also:
SortedMap.firstKey()
-
lastDoubleKey
public double lastDoubleKey()
Description copied from interface:Double2DoubleSortedMap
Returns the last (highest) key currently in this map.- Specified by:
lastDoubleKey
in interfaceDouble2DoubleSortedMap
- See Also:
SortedMap.lastKey()
-
firstKey
@Deprecated public java.lang.Double firstKey()
Deprecated.Please use the corresponding type-specific method instead.- Specified by:
firstKey
in interfaceDouble2DoubleSortedMap
- Specified by:
firstKey
in interfacejava.util.SortedMap<java.lang.Double,java.lang.Double>
-
lastKey
@Deprecated public java.lang.Double lastKey()
Deprecated.Please use the corresponding type-specific method instead.- Specified by:
lastKey
in interfaceDouble2DoubleSortedMap
- Specified by:
lastKey
in interfacejava.util.SortedMap<java.lang.Double,java.lang.Double>
-
subMap
@Deprecated public Double2DoubleSortedMap 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 interfaceDouble2DoubleSortedMap
- Specified by:
subMap
in interfacejava.util.SortedMap<java.lang.Double,java.lang.Double>
-
headMap
@Deprecated public Double2DoubleSortedMap 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 interfaceDouble2DoubleSortedMap
- Specified by:
headMap
in interfacejava.util.SortedMap<java.lang.Double,java.lang.Double>
-
tailMap
@Deprecated public Double2DoubleSortedMap 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 interfaceDouble2DoubleSortedMap
- Specified by:
tailMap
in interfacejava.util.SortedMap<java.lang.Double,java.lang.Double>
-
-