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
This class simplifies set operation.


Constructor Index

 o Set()
Public constructor to create a Set with no elements.
 o Set(Set)
Public constructor to create a Set with a list of element from another set.

Method Index

 o difference(Set)
Returns a Set object equal to the difference of this Set object and the Set object passed into the method.
 o has(Object)
Method to test whether an Object is in the Set.
 o intersect(Set)
Returns a Set object equal to the intersection of this Set object and the Set object passed into the method.
 o union(Set)
Returns a Set object equal to the union of this Set object and the Set object passed into the method.

Constructors

 o Set
 public Set()
Public constructor to create a Set with no elements.

 o Set
 public Set(Set set)
Public constructor to create a Set with a list of element from another set.

Methods

 o has
 public boolean has(Object obj)
Method to test whether an Object is in the Set.

 o 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
 o 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
 o 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