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

Overload CollectionUtils.isEqualCollection to accept an Equator instance

    XMLWordPrintableJSON

Details

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

    Description

      As of COLLECTIONS-242, a new Equator interface has been added to the API. It would be nice to take advantage of that when comparing collections so it can be done on something other than Object.equals(Object other). I propose a new method signature as below:

      public static boolean isEqualCollection(Collection a, Collection b, Equator e)
      

      Related to this is my post on StackOverflow: http://stackoverflow.com/questions/15094818/compare-two-java-collections-using-comparator-instead-of-equals

      Attachments

        1. COLLECTIONS-446.patch
          6 kB
          Thomas Neidhart

        Activity

          People

            Unassigned Unassigned
            mjlachman Matt Lachman
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: