ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/main/java/util/NavigableSet.java
(Generate patch)

Comparing jsr166/src/main/java/util/NavigableSet.java (file contents):
Revision 1.3 by dl, Tue Mar 22 01:30:10 2005 UTC vs.
Revision 1.4 by dl, Tue Mar 22 16:48:32 2005 UTC

# Line 21 | Line 21 | package java.util;
21   * additionally defines methods <tt>pollFirst</tt> and
22   * <t>pollLast</tt> that return and remove the lowest and highest key,
23   * if one exists, else returning <tt>null</tt>.
24 + * Methods <tt>navigableSubSet</tt>, <tt>navigableHeadSet</tt>, and
25 + * <tt>navigableTailSet</tt> differ from the similarly named
26 + * <tt>SortedSet</tt> methods only in that the returned sets
27 + * are guaranteed to obey the <tt>NavigableSet</tt> interface.
28   *
29   * <p> The return values of navigation methods may be ambiguous in
30   * implementations that permit <tt>null</tt> elements. However, even
# Line 118 | Line 122 | public interface NavigableSet<E> extends
122       * exclusive.  (If <tt>fromElement</tt> and <tt>toElement</tt> are
123       * equal, the returned navigable set is empty.)  The returned
124       * navigable set is backed by this set, so changes in the returned
125 <     * navigable set are reflected in this set, and vice-versa. Note:
122 <     * This method differs from <tt>SortedSet.subSet</tt> only in that
123 <     * the returned set is guaranteed to support the
124 <     * <tt>NavigableSet</tt> interface.
125 >     * navigable set are reflected in this set, and vice-versa.
126       *
127       * @param fromElement low endpoint (inclusive) of the subSet.
128       * @param toElement high endpoint (exclusive) of the subSet.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines