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

Overload CollectionUtils.isEqualCollection to accept an Equator instance

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment