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

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

public static class Double2IntSortedMaps.UnmodifiableSortedMap
extends Double2IntMaps.UnmodifiableMap
implements Double2IntSortedMap, 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.Double2IntSortedMap
Double2IntSortedMap.FastSortedEntrySet
 
Nested classes/interfaces inherited from interface it.unimi.dsi.fastutil.doubles.Double2IntMap
Double2IntMap.Entry, Double2IntMap.FastEntrySet
 
Field Summary
static long serialVersionUID
           
protected  Double2IntSortedMap sortedMap
           
 
Fields inherited from class it.unimi.dsi.fastutil.doubles.Double2IntMaps.UnmodifiableMap
entries, keys, map, values
 
Fields inherited from class it.unimi.dsi.fastutil.doubles.Double2IntFunctions.UnmodifiableFunction
function
 
Fields inherited from class it.unimi.dsi.fastutil.doubles.AbstractDouble2IntFunction
defRetValue
 
Constructor Summary
protected Double2IntSortedMaps.UnmodifiableSortedMap(Double2IntSortedMap m)
           
 
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<Map.Entry<Double,Integer>> entrySet()
          Returns a set view of the mappings contained in this map.
 double firstDoubleKey()
           
 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(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()
           
 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(Double from, 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(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.UnmodifiableMap
clear, containsKey, containsKey, containsValue, containsValue, defaultReturnValue, defaultReturnValue, get, isEmpty, put, put, putAll, remove, size, toString, values
 
Methods inherited from class it.unimi.dsi.fastutil.doubles.AbstractDouble2IntFunction
get, remove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, 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
 

Field Detail

serialVersionUID

public static final long serialVersionUID
See Also:
Constant Field Values

sortedMap

protected final Double2IntSortedMap sortedMap
Constructor Detail

Double2IntSortedMaps.UnmodifiableSortedMap

protected Double2IntSortedMaps.UnmodifiableSortedMap(Double2IntSortedMap m)
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 SortedMap<Double,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.UnmodifiableMap
Returns:
a type-specific set view of the mappings contained in this map.
See Also:
Double2IntMap.entrySet()

entrySet

public ObjectSortedSet<Map.Entry<Double,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 Map<Double,Integer>
Specified by:
entrySet in interface SortedMap<Double,Integer>
Overrides:
entrySet in class Double2IntMaps.UnmodifiableMap
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 Map<Double,Integer>
Specified by:
keySet in interface SortedMap<Double,Integer>
Overrides:
keySet in class Double2IntMaps.UnmodifiableMap
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 Double firstKey()
Specified by:
firstKey in interface SortedMap<Double,Integer>

lastKey

public Double lastKey()
Specified by:
lastKey in interface SortedMap<Double,Integer>

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.

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

Specified by:
subMap in interface Double2IntSortedMap
Specified by:
subMap in interface SortedMap<Double,Integer>
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.

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

Specified by:
headMap in interface Double2IntSortedMap
Specified by:
headMap in interface SortedMap<Double,Integer>
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.

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

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


Copyright © 2011. All Rights Reserved.