API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.util. SortedMap View Source
Author(s)
Josh Bloch
Since
1.2
Version
1.28, 04/21/06
Serial
Hierarchy
 Map
      SortedMap
Subinterfaces
Description
public interface SortedMap
  A Map that further provides a total ordering on its keys.
Methods
Hide/Show inherited methods
public Comparator<Object> comparator ()
  Returns the comparator used to order the keys in this map, or null if this map uses the natural ordering of its keys.
public Set<Entry< K, V>> entrySet () [Specified in Map]
  Returns a Set view of the mappings contained in this map.
public K firstKey ()
  Returns the first (lowest) key currently in this map.
public SortedMap< K, V> headMap ( K toKey)
  Returns a view of the portion of this map whose keys are strictly less than toKey.
public Set< K> keySet () [Specified in Map]
  Returns a Set view of the keys contained in this map.
public K lastKey ()
  Returns the last (highest) key currently in this map.
public SortedMap< K, V> subMap ( K fromKey, K toKey)
  Returns a view of the portion of this map whose keys range from fromKey, inclusive, to toKey, exclusive.
public SortedMap< K, V> tailMap ( K fromKey)
  Returns a view of the portion of this map whose keys are greater than or equal to fromKey.
public Collection< V> values () [Specified in Map]
  Returns a Collection view of the values contained in this map.
Fields
Hide/Show inherited fields
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar