Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
4.0
-
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