JDK-8001667 : Comparator combinators and extension methods
  • Type: Sub-task
  • Component: core-libs
  • Sub-Component: java.util
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2012-10-26
  • Updated: 2017-05-17
  • Resolved: 2013-03-08
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8
8 b82Fixed
Related Reports
Blocks :  
Description
Add the following methods in the new class Comparators:
Comparators.reverseOrder()
Comparators.naturalOrder()
Comparators.reverseOrder(comparator)

Comparators.comparing(Mapper<R,T>)
Comparators.comparing({Int,Long,Double}Mapper<T>)

Add the following extension methods on Comparator:
Comparator.reverse()
Comparator.compose(other)
Comments
http://cr.openjdk.java.net/~henryjen/webrevs/8001667.0/ Preparing CCC request
14-11-2012