org.kuali.common.util
Class SetUtils

java.lang.Object
  extended by org.kuali.common.util.SetUtils

public class SetUtils
extends Object


Constructor Summary
SetUtils()
           
 
Method Summary
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SetUtils

public SetUtils()
Method Detail

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.