it.unimi.dsi.fastutil.doubles
Class Double2IntSortedMaps.SynchronizedSortedMap

java.lang.Object
  extended by it.unimi.dsi.fastutil.doubles.AbstractDouble2IntFunction
      extended by it.unimi.dsi.fastutil.doubles.Double2IntFunctions.SynchronizedFunction
          extended by it.unimi.dsi.fastutil.doubles.Double2IntMaps.SynchronizedMap
              extended by it.unimi.dsi.fastutil.doubles.Double2IntSortedMaps.SynchronizedSortedMap
All Implemented Interfaces:
Double2IntFunction, Double2IntMap, Double2IntSortedMap, Function<java.lang.Double,java.lang.Integer>, java.io.Serializable, java.util.Map<java.lang.Double,java.lang.Integer>, java.util.SortedMap<java.lang.Double,java.lang.Integer>
Enclosing class:
Double2IntSortedMaps

public static class Double2IntSortedMaps.SynchronizedSortedMap
extends Double2IntMaps.SynchronizedMap
implements Double2IntSortedMap, 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.Double2IntSortedMap
Double2IntSortedMap.FastSortedEntrySet
 
Nested classes/interfaces inherited from interface it.unimi.dsi.fastutil.doubles.Double2IntMap
Double2IntMap.Entry, Double2IntMap.FastEntrySet
 
Field Summary
static long serialVersionUID
           
 
Method Summary
 DoubleComparator comparator()
          Returns the comparator associated with this sorted set, or null if it uses its keys' natural ordering.
 ObjectSortedSet<Double2IntMap.Entry> double2IntEntrySet()
          Returns a type-specific set view of the mappings contained in this map.
 ObjectSortedSet<java.util.Map.Entry<java.lang.Double,java.lang.Integer>> entrySet()
          Returns a set view of the mappings contained in this map.
 double firstDoubleKey()
           
 java.lang.Double firstKey()
           
 Double2IntSortedMap headMap(double to)
          Returns a view of the portion of this sorted map whose keys are strictly less than toKey.
 Double2IntSortedMap headMap(java.lang.Double to)
          Returns a view of the portion of this sorted map whose keys are strictly less than toKey.
 DoubleSortedSet keySet()
          Returns a set view of the keys contained in this map.
 double lastDoubleKey()
           
 java.lang.Double lastKey()
           
 Double2IntSortedMap subMap(double from, double to)
          Returns a view of the portion of this sorted map whose keys range from fromKey, inclusive, to toKey, exclusive.
 Double2IntSortedMap subMap(java.lang.Double from, java.lang.Double to)
          Returns a view of the portion of this sorted map whose keys range from fromKey, inclusive, to toKey, exclusive.
 Double2IntSortedMap tailMap(double from)
          Returns a view of the portion of this sorted map whose keys are greater than or equal to fromKey.
 Double2IntSortedMap tailMap(java.lang.Double from)
          Returns a view of the portion of this sorted map whose keys are greater than or equal to fromKey.
 
Methods inherited from class it.unimi.dsi.fastutil.doubles.Double2IntMaps.SynchronizedMap
clear, containsKey, containsKey, containsValue, containsValue, defaultReturnValue, defaultReturnValue, equals, get, hashCode, isEmpty, put, put, putAll, remove, size, toString, values
 
Methods inherited from class it.unimi.dsi.fastutil.doubles.Double2IntFunctions.SynchronizedFunction
get, remove
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface it.unimi.dsi.fastutil.doubles.Double2IntSortedMap
values
 
Methods inherited from interface it.unimi.dsi.fastutil.doubles.Double2IntMap
containsValue
 
Methods inherited from interface it.unimi.dsi.fastutil.doubles.Double2IntFunction
containsKey, defaultReturnValue, defaultReturnValue, get, put, remove
 
Methods inherited from interface it.unimi.dsi.fastutil.Function
clear, containsKey, get, put, remove, size
 
Methods inherited from interface java.util.Map
clear, containsKey, containsValue, equals, get, hashCode, isEmpty, put, putAll, remove, size
 
Methods inherited from interface java.util.Map
clear, containsKey, containsValue, equals, get, hashCode, isEmpty, put, putAll, remove, size
 

Field Detail

serialVersionUID

public static final long serialVersionUID
See Also:
Constant Field Values
Method Detail

comparator

public DoubleComparator comparator()
Description copied from interface: Double2IntSortedMap
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 interface Double2IntSortedMap
Specified by:
comparator in interface java.util.SortedMap<java.lang.Double,java.lang.Integer>
See Also:
SortedMap.comparator()

double2IntEntrySet

public ObjectSortedSet<Double2IntMap.Entry> double2IntEntrySet()
Description copied from interface: Double2IntMap
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 Double2IntMap.entrySet() so that it returns an ObjectSet of objects of type Double2IntMap.Entry (the latter makes it possible to access keys and values with type-specific methods).

Specified by:
double2IntEntrySet in interface Double2IntMap
Specified by:
double2IntEntrySet in interface Double2IntSortedMap
Overrides:
double2IntEntrySet in class Double2IntMaps.SynchronizedMap
Returns:
a type-specific set view of the mappings contained in this map.
See Also:
Double2IntMap.entrySet()

entrySet

public ObjectSortedSet<java.util.Map.Entry<java.lang.Double,java.lang.Integer>> entrySet()
Description copied from interface: Double2IntMap
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 interface Double2IntMap
Specified by:
entrySet in interface Double2IntSortedMap
Specified by:
entrySet in interface java.util.Map<java.lang.Double,java.lang.Integer>
Overrides:
entrySet in class Double2IntMaps.SynchronizedMap
Returns:
a set view of the mappings contained in this map.
See Also:
Map.entrySet()

keySet

public DoubleSortedSet keySet()
Description copied from interface: Double2IntMap
Returns a set view of the keys contained in this map.

Note that this specification strengthens the one given in Map.keySet().

Specified by:
keySet in interface Double2IntMap
Specified by:
keySet in interface Double2IntSortedMap
Specified by:
keySet in interface java.util.Map<java.lang.Double,java.lang.Integer>
Overrides:
keySet in class Double2IntMaps.SynchronizedMap
Returns:
a set view of the keys contained in this map.
See Also:
Map.keySet()

subMap

public Double2IntSortedMap subMap(double from,
                                  double to)
Description copied from interface: Double2IntSortedMap
Returns a view of the portion of this sorted map whose keys range from fromKey, inclusive, to toKey, exclusive.

Specified by:
subMap in interface Double2IntSortedMap
See Also:
SortedMap.subMap(Object,Object)

headMap

public Double2IntSortedMap headMap(double to)
Description copied from interface: Double2IntSortedMap
Returns a view of the portion of this sorted map whose keys are strictly less than toKey.

Specified by:
headMap in interface Double2IntSortedMap
See Also:
SortedMap.headMap(Object)

tailMap

public Double2IntSortedMap tailMap(double from)
Description copied from interface: Double2IntSortedMap
Returns a view of the portion of this sorted map whose keys are greater than or equal to fromKey.

Specified by:
tailMap in interface Double2IntSortedMap
See Also:
SortedMap.tailMap(Object)

firstDoubleKey

public double firstDoubleKey()
Specified by:
firstDoubleKey in interface Double2IntSortedMap
See Also:
SortedMap.firstKey()

lastDoubleKey

public double lastDoubleKey()
Specified by:
lastDoubleKey in interface Double2IntSortedMap
See Also:
SortedMap.lastKey()

firstKey

public java.lang.Double firstKey()
Specified by:
firstKey in interface java.util.SortedMap<java.lang.Double,java.lang.Integer>

lastKey

public java.lang.Double lastKey()
Specified by:
lastKey in interface java.util.SortedMap<java.lang.Double,java.lang.Integer>

subMap

public Double2IntSortedMap subMap(java.lang.Double from,
                                  java.lang.Double to)
Description copied from interface: Double2IntSortedMap
Returns a view of the portion of this sorted map whose keys range from fromKey, inclusive, to toKey, exclusive.

Note that this specification strengthens the one given in SortedMap.subMap(Object,Object).

Specified by:
subMap in interface Double2IntSortedMap
Specified by:
subMap in interface java.util.SortedMap<java.lang.Double,java.lang.Integer>
See Also:
SortedMap.subMap(Object,Object)

headMap

public Double2IntSortedMap headMap(java.lang.Double to)
Description copied from interface: Double2IntSortedMap
Returns a view of the portion of this sorted map whose keys are strictly less than toKey.

Note that this specification strengthens the one given in SortedMap.headMap(Object).

Specified by:
headMap in interface Double2IntSortedMap
Specified by:
headMap in interface java.util.SortedMap<java.lang.Double,java.lang.Integer>
See Also:
SortedMap.headMap(Object)

tailMap

public Double2IntSortedMap tailMap(java.lang.Double from)
Description copied from interface: Double2IntSortedMap
Returns a view of the portion of this sorted map whose keys are greater than or equal to fromKey.

Note that this specification strengthens the one given in SortedMap.tailMap(Object).

Specified by:
tailMap in interface Double2IntSortedMap
Specified by:
tailMap in interface java.util.SortedMap<java.lang.Double,java.lang.Integer>
See Also:
SortedMap.tailMap(Object)