Java Collection Difference difference(Collection a, Collection b)

Here you can find the source of difference(Collection a, Collection b)

Description

Difference of two collections

License

Apache License

Parameter

Parameter Description
a first collection
b second collection

Exception

Parameter Description
IllegalArgumentException if any of arguments is null

Return

new Collection with elements from a and b difference

Declaration

public static <T> Collection<T> difference(Collection<T> a, Collection<T> b) throws IllegalArgumentException 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.util.Collection;

public class Main {
    /**// ww w.  java 2s . c om
     * Difference of two collections
     *
     * @param a first collection
     * @param b second collection
     * @return new Collection with elements from a and b difference
     * @throws IllegalArgumentException if any of arguments is null
     */
    public static <T> Collection<T> difference(Collection<T> a, Collection<T> b) throws IllegalArgumentException {
        return null;
    }
}

Related

  1. computeDifferenceIndices(Collection smallCollection, Collection bigCollection)
  2. diff(Collection c1, Collection c2)
  3. diffColls(Collection oldColl, Collection newColl)
  4. difference(Collection set1, Collection set2)
  5. difference(Collection collection1, Collection result, Collection collection2)
  6. difference(final Collection c1, final Collection c2)
  7. difference(final Collection c1, final Collection c2)
  8. differentNull(Collection collection)
  9. getIntersectAndDiffs(Collection a, Collection b, Comparator comparator)