Constructor and Description |
---|
SetUtils() |
Modifier and Type | Method and Description |
---|---|
static <T> Set<T> |
difference(Set<T> a,
Set<T> b)
Return a new
Set containing only those elements that appear in a but not b |
static <T> Set<T> |
intersection(Set<T> a,
Set<T> b)
Return a new
Set containing only those elements that appear in both a and b |
static <T> Set<T> |
union(Set<T> a,
Set<T> b)
Return a new
Set containing all of the elements from both a and b |
public SetUtils()
public static <T> Set<T> intersection(Set<T> a, Set<T> b)
Set
containing only those elements that appear in both a
and b
public static <T> Set<T> union(Set<T> a, Set<T> b)
Set
containing all of the elements from both a
and b
public static <T> Set<T> difference(Set<T> a, Set<T> b)
Set
containing only those elements that appear in a
but not b
Copyright © 2010–2014 The Kuali Foundation. All rights reserved.