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

Overload CollectionUtils.isEqualCollection to accept an Equator instance

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 4.0
    • Fix Version/s: 4.0-alpha1, 4.0
    • Component/s: Collection
    • Labels:
      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

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: