[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cp-patches] Documentation for java.util.Collections
From: |
Mark Wielaard |
Subject: |
Re: [cp-patches] Documentation for java.util.Collections |
Date: |
Wed, 01 Sep 2004 08:16:13 +0200 |
Hi,
On Tue, 2004-08-24 at 21:55, Andrew John Hughes wrote:
> This patch adds documentation corrections and additions
> to java.util.Collections. I've had this one lying around for
> a while -- I'd forgotten I had to split it off from the last
> util post due to its size. Still pretty big though, so my apologies.
This is great. Thanks.
The only reason I didn't say "yes, please commit!" yet was that it has
the following kind of examples in SortedSet example that I must admit
just didn't get immediatly:
+ * The returned map throws an IllegalArgumentException any time a key is
+ * used which is out of the range of fromKey. Note that the endpoint is
+ * included; if you do not want the endpoint, pass the successor object in
+ * to fromKey. For example, for Strings, you can request
+ * <code>tailMap(limit + "\0")</code>.
Adding a 'null' character to a String doesn't look like a clean example,
it looks more like a quick hack that happens to work in this case. (It
depends on good knowledge of the String comparator.) Maybe you can give
a little clearer (more intuitive) example with Integers objects?
Cheers,
Mark
signature.asc
Description: This is a digitally signed message part
- Re: [cp-patches] Documentation for java.util.Collections,
Mark Wielaard <=