org.apache.jena.atlas.lib
Class SetUtils

java.lang.Object
  extended by org.apache.jena.atlas.lib.SetUtils

public class SetUtils
extends Object


Method Summary
static
<T> Set<T>
difference(Set<? extends T> s1, Set<? extends T> s2)
          Return is s1 \ s2
static
<T> Set<T>
intersection(Set<? extends T> setLeft, Set<? extends T> setRight)
           
static
<T> boolean
intersectionP(Set<? extends T> s1, Set<? extends T> s2)
           
static
<T> boolean
isDisjoint(Set<? extends T> s1, Set<? extends T> s2)
          Return true if s1 and s2 are disjoint
static
<X> Set<X>
setOfOne(X element)
           
static
<T> Set<T>
union(Set<? extends T> s1, Set<? extends T> s2)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setOfOne

public static <X> Set<X> setOfOne(X element)

intersection

public static <T> Set<T> intersection(Set<? extends T> setLeft,
                                      Set<? extends T> setRight)

intersectionP

public static <T> boolean intersectionP(Set<? extends T> s1,
                                        Set<? extends T> s2)

union

public static <T> Set<T> union(Set<? extends T> s1,
                               Set<? extends T> s2)

difference

public static <T> Set<T> difference(Set<? extends T> s1,
                                    Set<? extends T> s2)
Return is s1 \ s2


isDisjoint

public static <T> boolean isDisjoint(Set<? extends T> s1,
                                     Set<? extends T> s2)
Return true if s1 and s2 are disjoint



Licenced under the Apache License, Version 2.0