API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.util. NavigableMap View Source
Author(s)
Doug Lea
Josh Bloch
Since
1.6
Version
Serial
Hierarchy
 Map
      SortedMap
          NavigableMap
Subinterfaces
Description
public interface NavigableMap
  A SortedMap extended with navigation methods returning the closest matches for given search targets.
See also:   
Methods
Hide/Show inherited methods
public Entry< K, V> ceilingEntry ( K key)
  Returns a key-value mapping associated with the least key greater than or equal to the given key, or null if there is no such key.
public K ceilingKey ( K key)
  Returns the least key greater than or equal to the given key, or null if there is no such key.
public NavigableSet< K> descendingKeySet ()
  Returns a reverse order NavigableSet view of the keys contained in this map.
public NavigableMap< K, V> descendingMap ()
  Returns a reverse order view of the mappings contained in this map.
public Entry< K, V> firstEntry ()
  Returns a key-value mapping associated with the least key in this map, or null if the map is empty.
public Entry< K, V> floorEntry ( K key)
  Returns a key-value mapping associated with the greatest key less than or equal to the given key, or null if there is no such key.
public K floorKey ( K key)
  Returns the greatest key less than or equal to the given key, or null if there is no such key.
public SortedMap< K, V> headMap ( K toKey) [Specified in SortedMap]
  Returns a view of the portion of this map whose keys are strictly less than toKey.
public NavigableMap< K, V> headMap ( K toKey, boolean inclusive)
  Returns a view of the portion of this map whose keys are less than (or equal to, if inclusive is true) toKey.
public Entry< K, V> higherEntry ( K key)
  Returns a key-value mapping associated with the least key strictly greater than the given key, or null if there is no such key.
public K higherKey ( K key)
  Returns the least key strictly greater than the given key, or null if there is no such key.
public Entry< K, V> lastEntry ()
  Returns a key-value mapping associated with the greatest key in this map, or null if the map is empty.
public Entry< K, V> lowerEntry ( K key)
  Returns a key-value mapping associated with the greatest key strictly less than the given key, or null if there is no such key.
public K lowerKey ( K key)
  Returns the greatest key strictly less than the given key, or null if there is no such key.
public NavigableSet< K> navigableKeySet ()
  Returns a NavigableSet view of the keys contained in this map.
public Entry< K, V> pollFirstEntry ()
  Removes and returns a key-value mapping associated with the least key in this map, or null if the map is empty.
public Entry< K, V> pollLastEntry ()
  Removes and returns a key-value mapping associated with the greatest key in this map, or null if the map is empty.
public NavigableMap< K, V> subMap ( K fromKey, boolean fromInclusive, K toKey, boolean toInclusive)
  Returns a view of the portion of this map whose keys range from fromKey to toKey.
public SortedMap< K, V> subMap ( K fromKey, K toKey) [Specified in SortedMap]
  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) [Specified in SortedMap]
  Returns a view of the portion of this map whose keys are greater than or equal to fromKey.
public NavigableMap< K, V> tailMap ( K fromKey, boolean inclusive)
  Returns a view of the portion of this map whose keys are greater than (or equal to, if inclusive is true) fromKey.
Fields
Hide/Show inherited fields
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar