org.kuali.common.util
Class SetUtils
java.lang.Object
org.kuali.common.util.SetUtils
public class SetUtils
- extends Object
Method Summary |
static
|
difference(Set<T> a,
Set<T> b)
Return a new Set containing only those elements that appear in a but not b |
static
|
intersection(Set<T> a,
Set<T> b)
Return a new Set containing only those elements that appear in both a and b |
static
|
union(Set<T> a,
Set<T> b)
Return a new Set containing all of the elements from both a and b |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SetUtils
public SetUtils()
intersection
public 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
union
public 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
difference
public 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
Copyright © 2010-2013 The Kuali Foundation. All Rights Reserved.