edu.stanford.nlp.util
Class Sets

java.lang.Object
  extended by edu.stanford.nlp.util.Sets

public class Sets
extends Object

Utilities for sets

Author:
Roger Levy

Method Summary
static Set cross(Set s1, Set s2)
          returns the set cross product of s1 and s2, as Pairs
static Set diff(Set s1, Set s2)
          set difference s1 - s2
static Set intersection(Set s1, Set s2)
          set intersection
static void main(String[] args)
           
static Set powerSet(Set s)
          returns the powerset of a set
static Set union(Set s1, Set s2)
          set union
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

cross

public static Set cross(Set s1,
                        Set s2)
returns the set cross product of s1 and s2, as Pairs


diff

public static Set diff(Set s1,
                       Set s2)
set difference s1 - s2


union

public static Set union(Set s1,
                        Set s2)
set union


intersection

public static Set intersection(Set s1,
                               Set s2)
set intersection


powerSet

public static Set powerSet(Set s)
returns the powerset of a set


main

public static void main(String[] args)


Stanford NLP Group