RFR 8009736: Comparator API cleanup (original) (raw)
Henry Jen henry.jen at oracle.com
Tue Jun 11 21:04:38 UTC 2013
- Previous message: mercurial mq Re: RFR 8010325 : Remove hash32() method and hash32 int field from java.lang.String
- Next message: RFR 8009736: Comparator API cleanup
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi,
Please review http://cr.openjdk.java.net/~henryjen/ccc/8009736.2/webrev/
Highlight of changes,
Comparators class is now only package-private implementations. The public static methods have been move to other arguably more appropriate places, mostly in Comparator.
Comparator.reverseOrder() is renamed to Comparator.reversed()
nullsFirst(Comparator) and nullsLast(Comparator) are introduced to wrap up a comparator to be null-friendly.
To see the API changes, found the specdiff at http://cr.openjdk.java.net/~henryjen/ccc/8009736.2/specdiff/overview-summary.html
Cheers, Henry
- Previous message: mercurial mq Re: RFR 8010325 : Remove hash32() method and hash32 int field from java.lang.String
- Next message: RFR 8009736: Comparator API cleanup
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]