Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8001632 Umbrella: Library Lambdafication
  3. JDK-8001667

Comparator combinators and extension methods

    XMLWordPrintable

Details

    • Sub-task
    • Resolution: Fixed
    • P4
    • 8
    • None
    • core-libs
    • None
    • b82
    • Verified

    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)

      Attachments

        Issue Links

          Activity

            People

              henryjen Henry Jen
              briangoetz Brian Goetz
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: