[cvs] / jsr166 / src / main / java / util / NavigableSet.java Repository:
ViewVC logotype

Diff of /jsr166/src/main/java/util/NavigableSet.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.20, Fri Apr 21 04:45:37 2006 UTC revision 1.21, Fri Apr 21 21:37:48 2006 UTC
# Line 158  Line 158 
158       * on an attempt to insert an element outside its range.       * on an attempt to insert an element outside its range.
159       *       *
160       * @param fromElement low endpoint of the returned set       * @param fromElement low endpoint of the returned set
161       * @param fromInclusive true if the low endpoint ({@code fromElement}) is       * @param fromInclusive {@code true} if the low endpoint
162       *        to be included in the returned view       *        is to be included in the returned view
163       * @param toElement high endpoint of the returned set       * @param toElement high endpoint of the returned set
164       * @param toInclusive true if the high endpoint ({@code toElement}) is       * @param toInclusive {@code true} if the high endpoint
165       *        to be included in the returned view       *        is to be included in the returned view
166       * @return a view of the portion of this set whose elements range from       * @return a view of the portion of this set whose elements range from
167       *         {@code fromElement}, inclusive, to {@code toElement}, exclusive       *         {@code fromElement}, inclusive, to {@code toElement}, exclusive
168       * @throws ClassCastException if {@code fromElement} and       * @throws ClassCastException if {@code fromElement} and
# Line 194  Line 194 
194       * on an attempt to insert an element outside its range.       * on an attempt to insert an element outside its range.
195       *       *
196       * @param toElement high endpoint of the returned set       * @param toElement high endpoint of the returned set
197       * @param inclusive true if the high endpoint ({@code toElement}) is       * @param inclusive {@code true} if the high endpoint
198       *        to be included in the returned view       *        is to be included in the returned view
199       * @return a view of the portion of this set whose elements are less than       * @return a view of the portion of this set whose elements are less than
200       *         (or equal to, if {@code inclusive} is true) {@code toElement}       *         (or equal to, if {@code inclusive} is true) {@code toElement}
201       * @throws ClassCastException if {@code toElement} is not compatible       * @throws ClassCastException if {@code toElement} is not compatible
# Line 223  Line 223 
223       * on an attempt to insert an element outside its range.       * on an attempt to insert an element outside its range.
224       *       *
225       * @param fromElement low endpoint of the returned set       * @param fromElement low endpoint of the returned set
226       * @param inclusive true if the low endpoint ({@code fromElement}) is       * @param inclusive {@code true} if the low endpoint
227       *        to be included in the returned view       *        is to be included in the returned view
228       * @return a view of the portion of this set whose elements are greater       * @return a view of the portion of this set whose elements are greater
229       *         than or equal to {@code fromElement}       *         than or equal to {@code fromElement}
230       * @throws ClassCastException if {@code fromElement} is not compatible       * @throws ClassCastException if {@code fromElement} is not compatible
# Line 240  Line 240 
240       *         bounds of the range       *         bounds of the range
241       */       */
242      NavigableSet<E> tailSet(E fromElement, boolean inclusive);      NavigableSet<E> tailSet(E fromElement, boolean inclusive);
243    
244        /**
245         * Equivalent to {@code subSet(fromElement, true, toElement, false)}
246         * but with a return type conforming to the {@code SortedSet} interface.
247         *
248         * <p>{@inheritDoc}
249         *
250         * @throws ClassCastException       {@inheritDoc}
251         * @throws NullPointerException     {@inheritDoc}
252         * @throws IllegalArgumentException {@inheritDoc}
253         */
254        SortedSet<E> subSet(E fromElement, E toElement);
255    
256        /**
257         * Equivalent to {@code headSet(toElement, false)}
258         * but with a return type conforming to the {@code SortedSet} interface.
259         *
260         * <p>{@inheritDoc}
261         *
262         * @throws ClassCastException       {@inheritDoc}
263         * @throws NullPointerException     {@inheritDoc}
264         * @throws IllegalArgumentException {@inheritDoc}
265         */
266        SortedSet<E> headSet(E toElement);
267    
268        /**
269         * Equivalent to {@code tailSet(fromElement, true)}
270         * but with a return type conforming to the {@code SortedSet} interface.
271         *
272         * <p>{@inheritDoc}
273         *
274         * @throws ClassCastException       {@inheritDoc}
275         * @throws NullPointerException     {@inheritDoc}
276         * @throws IllegalArgumentException {@inheritDoc}
277         */
278        SortedSet<E> tailSet(E fromElement);
279  }  }

Legend:
Removed from v.1.20  
changed lines
  Added in v.1.21

Doug Lea
ViewVC Help
Powered by ViewVC 1.0.8