opennlp.grok.util
Class GrokSet
java.lang.Object
|
+--java.util.AbstractCollection
|
+--java.util.AbstractSet
|
+--java.util.HashSet
|
+--opennlp.grok.util.GrokSet
- All Implemented Interfaces:
- java.lang.Cloneable, java.util.Collection, java.io.Serializable, java.util.Set
- public class GrokSet
- extends java.util.HashSet
A special implementation of sets. We should probably get rid of this and
use java sets, but we've had some problems with them.
- Version:
- $Revision: 1.2 $, $Date: 2001/11/26 17:18:23 $
- Author:
- Gann Bierner
- See Also:
- Serialized Form
Methods inherited from class java.util.HashSet |
add, clear, clone, isEmpty, iterator, remove, size |
Methods inherited from class java.util.AbstractSet |
equals, hashCode, removeAll |
Methods inherited from class java.util.AbstractCollection |
addAll, containsAll, retainAll, toArray, toArray, toString |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Set |
addAll, containsAll, equals, hashCode, removeAll, retainAll, toArray, toArray |
GrokSet
public GrokSet(java.util.Collection c)
GrokSet
public GrokSet()
intersect
public GrokSet intersect(GrokSet s)
union
public GrokSet union(GrokSet s)
subset
public boolean subset(GrokSet s)
contains
public boolean contains(java.lang.Object o)
- Specified by:
contains
in interface java.util.Set
- Overrides:
contains
in class java.util.HashSet
minusDeep
public GrokSet minusDeep(GrokSet s)
setDifference
public GrokSet setDifference(GrokSet s)
- Performs set difference on two sets. Unfortunately, the
removeAll(Collection c) method of Collection doesn't seem to work, so I
have implemented the removal explicitly --jmb.
minus
public GrokSet minus(java.lang.Object d)
max
public GrokSet max()
pow
public GrokSet pow()
multiPow
public GrokSet multiPow()
main
public static void main(java.lang.String[] args)
Copyright © 2003 Jason Baldridge and Gann Bierner. All Rights Reserved.