Comparator combinators and extension methods

XMLWordPrintable

    • Type: Sub-task
    • Resolution: Fixed
    • Priority: P4
    • 8
    • Affects Version/s: None
    • Component/s: core-libs
    • None
    • b82
    • Verified

      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)

            Assignee:
            Henry Jen
            Reporter:
            Brian Goetz
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: