/[classpath]/classpath/java/util/SortedSet.java
ViewVC logotype

Diff of /classpath/java/util/SortedSet.java

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

revision 1.7 by gnu_andrew, Thu Jul 29 20:23:18 2004 UTC revision 1.8 by gnu_andrew, Tue Aug 17 22:19:57 2004 UTC
# Line 50  package java.util; Line 50  package java.util;
50   * <code>k1.compareTo(k2)</code> or <code>comparator.compare(k1, k2)</code>   * <code>k1.compareTo(k2)</code> or <code>comparator.compare(k1, k2)</code>
51   * must not throw a ClassCastException. The ordering must be <i>consistent   * must not throw a ClassCastException. The ordering must be <i>consistent
52   * with equals</i> (see {@link Comparator} for this definition), if the   * with equals</i> (see {@link Comparator} for this definition), if the
53   * map is to obey the general contract of the Set interface.  If not,   * set is to obey the general contract of the Set interface.  If not,
54   * the results are well-defined, but probably not what you wanted.   * the results are well-defined, but probably not what you wanted.
55   * <p>   * <p>
56   *   *
# Line 85  public interface SortedSet extends Set Line 85  public interface SortedSet extends Set
85    Comparator comparator();    Comparator comparator();
86    
87    /**    /**
88     * Returns the first (lowest sorted) element in the map.     * Returns the first (lowest sorted) element in the set.
89     *     *
90     * @return the first element     * @return the first element
91     * @throws NoSuchElementException if the set is empty.     * @throws NoSuchElementException if the set is empty.
# Line 110  public interface SortedSet extends Set Line 110  public interface SortedSet extends Set
110     *         contents     *         contents
111     * @throws IllegalArgumentException if this is a subSet, and toElement is out     * @throws IllegalArgumentException if this is a subSet, and toElement is out
112     *         of range     *         of range
113     * @throws NullPointerException if toElement is null but the map does not     * @throws NullPointerException if toElement is null but the set does not
114     *         allow null elements     *         allow null elements
115     */     */
116    SortedSet headSet(Object toElement);    SortedSet headSet(Object toElement);
117    
118    /**    /**
119     * Returns the last (highest sorted) element in the map.     * Returns the last (highest sorted) element in the set.
120     *     *
121     * @return the last element     * @return the last element
122     * @throws NoSuchElementException if the set is empty.     * @throws NoSuchElementException if the set is empty.

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26