public class SetDifference
extends java.lang.Object
Constructor and Description |
---|
SetDifference() |
Modifier and Type | Method and Description |
---|---|
static <T> java.util.Set<T> |
diff(java.util.Set<? extends T> s1,
java.util.Set<? extends T> s2)
This method is to calculate the difference of two Sets.
|
public static <T> java.util.Set<T> diff(java.util.Set<? extends T> s1, java.util.Set<? extends T> s2)
T
- - the data type of a Sets1
- - a specified type Set,Set
s2
- - a specified type Set,Set
Set