edu.stanford.nlp.util
Class Sets

java.lang.Object
  |
  +--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 void main(String[] args)
           
static Set powerSet(Set s)
          returns the powerset of a set
 
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


powerSet

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


main

public static void main(String[] args)


Stanford NLP Group