diff options
author | andreast <andreast@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-08-29 17:28:09 +0000 |
---|---|---|
committer | andreast <andreast@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-08-29 17:28:09 +0000 |
commit | b9e83dce4f3fdff1ee8748526c773cca8bad1bfb (patch) | |
tree | 20a303114d352cf8ac2c2a4bf36764aa0a06579a /libjava/java/util/SortedSet.java | |
parent | b4f45d022de923c12fe88cd2726ed95b63990d38 (diff) | |
download | gcc-b9e83dce4f3fdff1ee8748526c773cca8bad1bfb.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@86730 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/java/util/SortedSet.java')
-rw-r--r-- | libjava/java/util/SortedSet.java | 8 |
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. |