JSci.maths
Interface MathSet

All Known Implementing Classes:
FiniteSet, FinSet.FunctionSet

public interface MathSet

This interface defines a set.

PlanetMath references:
Set

Method Summary
 int cardinality()
          Returns the cardinality.
 MathSet intersect(MathSet set)
          Performs the intersection of this set with another.
 MathSet union(MathSet set)
          Performs the union of this set with another.
 

Method Detail

cardinality

public int cardinality()
Returns the cardinality.


union

public MathSet union(MathSet set)
Performs the union of this set with another.

Parameters:
set - a set.
Returns:
the union of the two sets.

intersect

public MathSet intersect(MathSet set)
Performs the intersection of this set with another.

Parameters:
set - a set.
Returns:
the intersection of the two sets.