From 477a21f7f9b31c687d45f1001dd93c90df52cf29 Mon Sep 17 00:00:00 2001 From: Andrew John Hughes Date: Sun, 29 Aug 2004 17:28:09 +0000 Subject: AbstractCollection.java, [...]: Added additional exceptions to documentation... 2004-08-29 Andrew John Hughes * java/util/AbstractCollection.java, java/util/AbstractList.java, java/util/AbstractMap.java, java/util/AbstractSequentialList.java, java/util/ArrayList.java, java/util/Arrays.java, java/util/BitSet.java, java/util/Calendar.java, java/util/Collection.java, java/util/ListIterator.java, java/util/Map.java, java/util/SortedSet.java: Added additional exceptions to documentation, along with some additions and corrections. From-SVN: r86730 --- libjava/java/util/SortedSet.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'libjava/java/util/SortedSet.java') diff --git a/libjava/java/util/SortedSet.java b/libjava/java/util/SortedSet.java index 81dff0ca229..415e95f8f18 100644 --- a/libjava/java/util/SortedSet.java +++ b/libjava/java/util/SortedSet.java @@ -50,7 +50,7 @@ package java.util; * k1.compareTo(k2) or comparator.compare(k1, k2) * must not throw a ClassCastException. The ordering must be consistent * with equals (see {@link Comparator} for this definition), if the - * 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, * the results are well-defined, but probably not what you wanted. *

* @@ -85,7 +85,7 @@ public interface SortedSet extends Set Comparator comparator(); /** - * Returns the first (lowest sorted) element in the map. + * Returns the first (lowest sorted) element in the set. * * @return the first element * @throws NoSuchElementException if the set is empty. @@ -110,13 +110,13 @@ public interface SortedSet extends Set * contents * @throws IllegalArgumentException if this is a subSet, and toElement is out * of range - * @throws NullPointerException if toElement is null but the map does not + * @throws NullPointerException if toElement is null but the set does not * allow null elements */ SortedSet headSet(Object toElement); /** - * Returns the last (highest sorted) element in the map. + * Returns the last (highest sorted) element in the set. * * @return the last element * @throws NoSuchElementException if the set is empty. -- cgit v1.2.3