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

Comparing jsr166/src/jsr166x/NavigableSet.java (file contents):
Revision 1.3 by dl, Tue Dec 21 17:27:44 2004 UTC vs.
Revision 1.4 by jsr166, Mon Nov 16 04:16:42 2009 UTC

# Line 38 | Line 38 | public interface NavigableSet<E> extends
38      /**
39       * Returns an element greater than or equal to the given element, or
40       * <tt>null</tt> if there is no such element.
41 <     *
41 >     *
42       * @param o the value to match
43       * @return an element greater than or equal to given element, or
44       * <tt>null</tt> if there is no such element.
45       * @throws ClassCastException if o cannot be compared with the elements
46       *            currently in the set.
47 <     * @throws NullPointerException if o is <tt>null</tt>
47 >     * @throws NullPointerException if o is <tt>null</tt>
48       * and this set deas not permit <tt>null</tt> elements
49       */
50      public E ceiling(E o);
# Line 52 | Line 52 | public interface NavigableSet<E> extends
52      /**
53       * Returns an element strictly less than the given element, or
54       * <tt>null</tt> if there is no such element.
55 <     *
55 >     *
56       * @param o the value to match
57       * @return the greatest element less than the given element, or
58       * <tt>null</tt> if there is no such element.
# Line 66 | Line 66 | public interface NavigableSet<E> extends
66      /**
67       * Returns an element less than or equal to the given element, or
68       * <tt>null</tt> if there is no such element.
69 <     *
69 >     *
70       * @param o the value to match
71       * @return the greatest element less than or equal to given
72       * element, or <tt>null</tt> if there is no such element.
# Line 80 | Line 80 | public interface NavigableSet<E> extends
80      /**
81       * Returns an element strictly greater than the given element, or
82       * <tt>null</tt> if there is no such element.
83 <     *
83 >     *
84       * @param o the value to match
85       * @return the least element greater than the given element, or
86       * <tt>null</tt> if there is no such element.
# Line 107 | Line 107 | public interface NavigableSet<E> extends
107  
108      /**
109       * Returns an iterator over the elements in this collection, in
110 <     * descending order.  
111 <     *
110 >     * descending order.
111 >     *
112       * @return an <tt>Iterator</tt> over the elements in this collection
113       */
114      Iterator<E> descendingIterator();
# Line 119 | Line 119 | public interface NavigableSet<E> extends
119       * <tt>fromElement</tt> and <tt>toElement</tt> are equal, the returned
120       * sorted set is empty.)  The returned sorted set is backed by this set,
121       * so changes in the returned sorted set are reflected in this set, and
122 <     * vice-versa.
122 >     * vice-versa.
123       * @param fromElement low endpoint (inclusive) of the subSet.
124       * @param toElement high endpoint (exclusive) of the subSet.
125       * @return a view of the portion of this set whose elements range from
# Line 132 | Line 132 | public interface NavigableSet<E> extends
132       * @throws IllegalArgumentException if <tt>fromElement</tt> is
133       * greater than <tt>toElement</tt>.
134       * @throws NullPointerException if <tt>fromElement</tt> or
135 <     *         <tt>toElement</tt> is <tt>null</tt>
135 >     *         <tt>toElement</tt> is <tt>null</tt>
136       * and this set deas not permit <tt>null</tt> elements
137       */
138      public NavigableSet<E> subSet(E fromElement, E toElement);
# Line 141 | Line 141 | public interface NavigableSet<E> extends
141       * Returns a view of the portion of this set whose elements are strictly
142       * less than <tt>toElement</tt>.  The returned sorted set is backed by
143       * this set, so changes in the returned sorted set are reflected in this
144 <     * set, and vice-versa.  
144 >     * set, and vice-versa.
145       * @param toElement high endpoint (exclusive) of the headSet.
146       * @return a view of the portion of this set whose elements are strictly
147       *         less than toElement.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines