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

java.lang.Object
  extended by it.unimi.dsi.fastutil.doubles.AbstractDouble2CharFunction
      extended by it.unimi.dsi.fastutil.doubles.Double2CharFunctions.UnmodifiableFunction
          extended by it.unimi.dsi.fastutil.doubles.Double2CharMaps.UnmodifiableMap
              extended by it.unimi.dsi.fastutil.doubles.Double2CharSortedMaps.UnmodifiableSortedMap
All Implemented Interfaces:
Double2CharFunction, Double2CharMap, Double2CharSortedMap, Function<Double,Character>, Serializable, Map<Double,Character>, SortedMap<Double,Character>
Enclosing class:
Double2CharSortedMaps

public static class Double2CharSortedMaps.UnmodifiableSortedMap
extends Double2CharMaps.UnmodifiableMap
implements Double2CharSortedMap, 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.Double2CharSortedMap
Double2CharSortedMap.FastSortedEntrySet
 
Nested classes/interfaces inherited from interface it.unimi.dsi.fastutil.doubles.Double2CharMap
Double2CharMap.Entry, Double2CharMap.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<Double2CharMap.Entry> double2CharEntrySet()
          Returns a type-specific set view of the mappings contained in this map.
 ObjectSortedSet<Map.Entry<Double,Character>> entrySet()
          Returns a set view of the mappings contained in this map.
 double firstDoubleKey()
           
 Double firstKey()
           
 Double2CharSortedMap headMap(double to)
          Returns a view of the portion of this sorted map whose keys are strictly less than toKey.
 Double2CharSortedMap 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()
           
 Double2CharSortedMap subMap(double from, double to)
          Returns a view of the portion of this sorted map whose keys range from fromKey, inclusive, to toKey, exclusive.
 Double2CharSortedMap subMap(Double from, Double to)
          Returns a view of the portion of this sorted map whose keys range from fromKey, inclusive, to toKey, exclusive.
 Double2CharSortedMap tailMap(double from)
          Returns a view of the portion of this sorted map whose keys are greater than or equal to fromKey.
 Double2CharSortedMap 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.Double2CharMaps.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.AbstractDouble2CharFunction
get, remove
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface it.unimi.dsi.fastutil.doubles.Double2CharSortedMap
values
 
Methods inherited from interface it.unimi.dsi.fastutil.doubles.Double2CharMap
containsValue
 
Methods inherited from interface it.unimi.dsi.fastutil.doubles.Double2CharFunction
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
Method Detail

comparator

public DoubleComparator comparator()
Description copied from interface: Double2CharSortedMap
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 Double2CharSortedMap
Specified by:
comparator in interface SortedMap<Double,Character>
See Also:
SortedMap.comparator()

double2CharEntrySet

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

Specified by:
double2CharEntrySet in interface Double2CharMap
Specified by:
double2CharEntrySet in interface Double2CharSortedMap
Overrides:
double2CharEntrySet in class Double2CharMaps.UnmodifiableMap
Returns:
a type-specific set view of the mappings contained in this map.
See Also:
Double2CharMap.entrySet()

entrySet

public ObjectSortedSet<Map.Entry<Double,Character>> entrySet()
Description copied from interface: Double2CharMap
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 Double2CharMap
Specified by:
entrySet in interface Double2CharSortedMap
Specified by:
entrySet in interface Map<Double,Character>
Specified by:
entrySet in interface SortedMap<Double,Character>
Overrides:
entrySet in class Double2CharMaps.UnmodifiableMap
Returns:
a set view of the mappings contained in this map.
See Also:
Map.entrySet()

keySet

public DoubleSortedSet keySet()
Description copied from interface: Double2CharMap
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 Double2CharMap
Specified by:
keySet in interface Double2CharSortedMap
Specified by:
keySet in interface Map<Double,Character>
Specified by:
keySet in interface SortedMap<Double,Character>
Overrides:
keySet in class Double2CharMaps.UnmodifiableMap
Returns:
a set view of the keys contained in this map.
See Also:
Map.keySet()

subMap

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

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

headMap

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

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

tailMap

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

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

firstDoubleKey

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

lastDoubleKey

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

firstKey

public Double firstKey()
Specified by:
firstKey in interface SortedMap<Double,Character>

lastKey

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

subMap

public Double2CharSortedMap subMap(Double from,
                                   Double to)
Description copied from interface: Double2CharSortedMap
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 Double2CharSortedMap
Specified by:
subMap in interface SortedMap<Double,Character>
See Also:
SortedMap.subMap(Object,Object)

headMap

public Double2CharSortedMap headMap(Double to)
Description copied from interface: Double2CharSortedMap
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 Double2CharSortedMap
Specified by:
headMap in interface SortedMap<Double,Character>
See Also:
SortedMap.headMap(Object)

tailMap

public Double2CharSortedMap tailMap(Double from)
Description copied from interface: Double2CharSortedMap
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 Double2CharSortedMap
Specified by:
tailMap in interface SortedMap<Double,Character>
See Also:
SortedMap.tailMap(Object)