summaryrefslogtreecommitdiff
path: root/libjava/java/util/SortedSet.java
diff options
context:
space:
mode:
authorAndrew John Hughes <gnu_andrew@member.fsf.org>2004-08-29 17:28:09 +0000
committerAndreas Tobler <andreast@gcc.gnu.org>2004-08-29 19:28:09 +0200
commit477a21f7f9b31c687d45f1001dd93c90df52cf29 (patch)
tree20a303114d352cf8ac2c2a4bf36764aa0a06579a /libjava/java/util/SortedSet.java
parent294fbfc89faac46092334188d2bbe527880794a7 (diff)
AbstractCollection.java, [...]: Added additional exceptions to documentation...
2004-08-29 Andrew John Hughes <gnu_andrew@member.fsf.org> * 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
Diffstat (limited to 'libjava/java/util/SortedSet.java')
-rw-r--r--libjava/java/util/SortedSet.java8
1 files changed, 4 insertions, 4 deletions
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;
* <code>k1.compareTo(k2)</code> or <code>comparator.compare(k1, k2)</code>
* must not throw a ClassCastException. The ordering must be <i>consistent
* with equals</i> (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.
* <p>
*
@@ -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.