Java Utililty Methods Collection Difference

List of utility methods to do Collection Difference

Description

The list of methods to do Collection Difference are organized into topic(s).

Method

ListgetSymmetricDifference(final Set firstCollection, final Set secondCollection)
Finds all unique property names that are in the first set, but not in the second
List<String> difference = new ArrayList<String>(firstCollection);
for (String value : secondCollection) {
    difference.remove(value);
return difference;
CollectionleftDifference(final Collection c1, final Collection c2)
left Difference
return rightDifference(c2, c1);