All Packages Class Hierarchy This Package Previous Next Index
Class cynosurex.util.Set
java.lang.Object
|
+----java.util.Vector
|
+----cynosurex.util.Set
- public class Set
- extends Vector
- implements CommonInterface
This class simplifies set operation.
-
Set()
- Public constructor to create a Set with no elements.
-
Set(Set)
- Public constructor to create a Set with a list of element
from another set.
-
difference(Set)
- Returns a Set object equal to the difference of this Set
object and the Set object passed into the method.
-
has(Object)
- Method to test whether an Object is in the Set.
-
intersect(Set)
- Returns a Set object equal to the intersection of this Set
object and the Set object passed into the method.
-
union(Set)
- Returns a Set object equal to the union of this Set
object and the Set object passed into the method.
Set
public Set()
- Public constructor to create a Set with no elements.
Set
public Set(Set set)
- Public constructor to create a Set with a list of element
from another set.
has
public boolean has(Object obj)
- Method to test whether an Object is in the Set.
intersect
public Set intersect(Set set)
- Returns a Set object equal to the intersection of this Set
object and the Set object passed into the method.
- Parameters:
- set - is a Set object
union
public Set union(Set set)
- Returns a Set object equal to the union of this Set
object and the Set object passed into the method.
- Parameters:
- set - is a Set object
difference
public Set difference(Set set)
- Returns a Set object equal to the difference of this Set
object and the Set object passed into the method.
- Parameters:
- set - is a Set object
All Packages Class Hierarchy This Package Previous Next Index