summaryrefslogtreecommitdiffstats
path: root/libjava/java/util/SortedSet.java
diff options
context:
space:
mode:
authormark <mark@138bc75d-0d04-0410-961f-82ee72b054a4>2004-11-07 11:42:22 +0000
committermark <mark@138bc75d-0d04-0410-961f-82ee72b054a4>2004-11-07 11:42:22 +0000
commit95808ab06657ff4f73314ae406076fe96f73baee (patch)
tree474e14b23d1bd5d11263652d5c67abf5d74b01cf /libjava/java/util/SortedSet.java
parent7d7839ee94cb125f7eb07c5a448ed1390cccafad (diff)
downloadppe42-gcc-95808ab06657ff4f73314ae406076fe96f73baee.tar.gz
ppe42-gcc-95808ab06657ff4f73314ae406076fe96f73baee.zip
2004-11-07 Andrew John Hughes <gnu_andrew@member.fsf.org>
* java/util/Collections.java Added documentation. * java/util/SortedMap.java Clarified some method examples. * java/util/SortedSet.java Clarified some method examples. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@90227 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/java/util/SortedSet.java')
-rw-r--r--libjava/java/util/SortedSet.java23
1 files changed, 12 insertions, 11 deletions
diff --git a/libjava/java/util/SortedSet.java b/libjava/java/util/SortedSet.java
index 415e95f8f18..8cdbe878f63 100644
--- a/libjava/java/util/SortedSet.java
+++ b/libjava/java/util/SortedSet.java
@@ -99,10 +99,10 @@ public interface SortedSet extends Set
* <p>
*
* The returned set throws an IllegalArgumentException any time an element is
- * used which is out of the range of toElement. Note that the endpoint is not
- * included; if you want the endpoint, pass the successor object in to
- * toElement. For example, for Strings, you can request
- * <code>headSet(limit + "\0")</code>.
+ * used which is out of the range of toElement. Note that the endpoint, toElement,
+ * is not included; if you want this value included, pass its successor object in to
+ * toElement. For example, for Integers, you could request
+ * <code>headSet(new Integer(limit.intValue() + 1))</code>.
*
* @param toElement the exclusive upper range of the subset
* @return the subset
@@ -133,9 +133,10 @@ public interface SortedSet extends Set
* The returned set throws an IllegalArgumentException any time an element is
* used which is out of the range of fromElement and toElement. Note that the
* lower endpoint is included, but the upper is not; if you want to
- * change the inclusion or exclusion of an endpoint, pass the successor
- * object in instead. For example, for Strings, you can request
- * <code>subSet(lowlimit + "\0", highlimit + "\0")</code> to reverse
+ * change the inclusion or exclusion of an endpoint, pass its successor
+ * object in instead. For example, for Integers, you can request
+ * <code>subSet(new Integer(lowlimit.intValue() + 1),
+ * new Integer(highlimit.intValue() + 1))</code> to reverse
* the inclusiveness of both endpoints.
*
* @param fromElement the inclusive lower range of the subset
@@ -157,10 +158,10 @@ public interface SortedSet extends Set
* <p>
*
* The returned set throws an IllegalArgumentException any time an element is
- * used which is out of the range of fromElement. Note that the endpoint is
- * included; if you do not want the endpoint, pass the successor object in
- * to fromElement. For example, for Strings, you can request
- * <code>tailSet(limit + "\0")</code>.
+ * used which is out of the range of fromElement. Note that the endpoint,
+ * fromElement, is included; if you do not want this value to be included, pass its
+ * successor object in to fromElement. For example, for Integers, you could request
+ * <code>tailSet(new Integer(limit.intValue() + 1))</code>.
*
* @param fromElement the inclusive lower range of the subset
* @return the subset
OpenPOWER on IntegriCloud