Uploaded image for project: 'Commons Collections'
  1. Commons Collections
  2. COLLECTIONS-260

TransformingComparator should have a constructor with just a Transformer

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.2
    • 4.0-alpha1, 4.0
    • Comparator
    • None

    Description

      With generics, it's possible to have a constructor like:

      TransformingComparator(Transformer<I, O extends Comparable> transformer)

      { this(transformer, new ComparableComparator()); }

      *NB: Pseudo code - that will not work as is

      Attachments

        Activity

          People

            Unassigned Unassigned
            shammah Stephen Kestle
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: