[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.15, Wed Apr 19 15:07:14 2006 UTC revision 1.16, Thu Apr 20 20:34:37 2006 UTC
# Line 20  Line 20 
20   * descending ones.  This interface additionally defines methods   * descending ones.  This interface additionally defines methods
21   * {@code pollFirst} and {@code pollLast} that return and remove the   * {@code pollFirst} and {@code pollLast} that return and remove the
22   * lowest and highest element, if one exists, else returning {@code   * lowest and highest element, if one exists, else returning {@code
23   * null}.  Methods {@code navigableSubSet}, {@code navigableHeadSet},   * null}.  Methods {@code subSet}, {@code headSet},
24   * and {@code navigableTailSet} differ from the similarly named {@code   * and {@code tailSet} differ from the like-named {@code
25   * SortedSet} methods in accepting additional arguments describing   * SortedSet} methods in accepting additional arguments describing
26   * whether lower and upper bounds are inclusive versus exclusive.   * whether lower and upper bounds are inclusive versus exclusive.
27   * Subsets of any {@code NavigableSet} must implement the {@code   * Subsets of any {@code NavigableSet} must implement the {@code
# Line 180  Line 180 
180       *         has a restricted range, and {@code fromElement} or       *         has a restricted range, and {@code fromElement} or
181       *         {@code toElement} lies outside the bounds of the range.       *         {@code toElement} lies outside the bounds of the range.
182       */       */
183      NavigableSet<E> navigableSubSet(E fromElement, boolean fromInclusive,      NavigableSet<E> subSet(E fromElement, boolean fromInclusive,
184                                      E toElement,   boolean toInclusive);                                      E toElement,   boolean toInclusive);
185    
186      /**      /**
# Line 210  Line 210 
210       *         restricted range, and {@code toElement} lies outside the       *         restricted range, and {@code toElement} lies outside the
211       *         bounds of the range       *         bounds of the range
212       */       */
213      NavigableSet<E> navigableHeadSet(E toElement, boolean inclusive);      NavigableSet<E> headSet(E toElement, boolean inclusive);
214    
215      /**      /**
216       * Returns a view of the portion of this set whose elements are greater       * Returns a view of the portion of this set whose elements are greater
# Line 239  Line 239 
239       *         restricted range, and {@code fromElement} lies outside the       *         restricted range, and {@code fromElement} lies outside the
240       *         bounds of the range       *         bounds of the range
241       */       */
242      NavigableSet<E> navigableTailSet(E fromElement, boolean inclusive);      NavigableSet<E> tailSet(E fromElement, boolean inclusive);
243  }  }

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.16

Doug Lea
ViewVC Help
Powered by ViewVC 1.0.8