hg: lambda/lambda/jdk: Adds thenComparing extension methods to Comparator for chaining comparators.

Mike Duigou mike.duigou at oracle.com
Wed Dec 5 14:40:08 PST 2012


This is planned to happen before the move into JDK mainline. There's still a runtime support issue for static interface methods (http://mail.openjdk.java.net/pipermail/lambda-dev/2012-December/006972.html) that's holding us back a bit.

Mike

On Dec 5 2012, at 14:15 , Remi Forax wrote:

> On 12/05/2012 11:01 PM, mike.duigou at oracle.com wrote:
>> Changeset: caedfd90faf7
>> Author:    henryjen
>> Date:      2012-12-05 14:00 -0800
>> URL:       http://hg.openjdk.java.net/lambda/lambda/jdk/rev/caedfd90faf7
>> 
>> Adds thenComparing extension methods to Comparator for chaining comparators.
>> 
>> ! src/share/classes/java/util/Comparator.java
>> ! test-ng/tests/org/openjdk/tests/java/util/stream/op/SortedOpTest.java
>> ! test/java/util/ComparatorsTest.java
>> 
>> 
> 
> Mike,
> I think you should move the implementation of Comparators into 
> Comparator and get ride of Comparators.
> 
> Rémi
> 
> 



More information about the lambda-dev mailing list