Here you can find the source of difference(Collection
Parameter | Description |
---|---|
a | first collection |
b | second collection |
Parameter | Description |
---|---|
IllegalArgumentException | if any of arguments is null |
public static <T> Collection<T> difference(Collection<T> a, Collection<T> b) throws IllegalArgumentException
//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; } }