Opus5
Interface Set
- All Superinterfaces:
- Comparable, Container, SearchableContainer
- All Known Subinterfaces:
- Partition
- All Known Implementing Classes:
- SetAsArray, PartitionAsForest.PartitionTree, SetAsBitVector
- public interface Set
- extends SearchableContainer
Encapsulates methods common to all sets.
- Version:
- $Id: Set.java,v 3.2 1998/07/28 02:49:09 brpreiss Exp $
- Author:
- Bruno R. Preiss, P.Eng.
|
Field Summary |
static java.lang.String |
copyright
|
|
Method Summary |
Set |
difference(Set set)
Returns the difference between this set and the specified set. |
Set |
intersection(Set set)
Returns the intersection of this set and the specified set. |
boolean |
isEQ(Set set)
Tests whether this set is equal to the specified set. |
boolean |
isSubset(Set set)
Tests whether this set is a subset of the specified set. |
Set |
union(Set set)
Returns the union of this set and the specified set. |
copyright
public static final java.lang.String copyright
union
public Set union(Set set)
- Returns the union of this set and the specified set.
- Parameters:
set - The set to be joined with this set.- Returns:
- The union of this set and the specified set.
intersection
public Set intersection(Set set)
- Returns the intersection of this set and the specified set.
- Parameters:
set - The set to be intersected with this set.- Returns:
- The intersection of this set and the specified set.
difference
public Set difference(Set set)
- Returns the difference between this set and the specified set.
- Parameters:
set - The set to subtract from this set.- Returns:
- The difference between this set and the specified set.
isEQ
public boolean isEQ(Set set)
- Tests whether this set is equal to the specified set.
- Parameters:
set - The set to which this set is compared.- Returns:
- True if this set is equal to the specified set;
false otherwise.
isSubset
public boolean isSubset(Set set)
- Tests whether this set is a subset of the specified set.
- Parameters:
set - The set to which this set is compared.- Returns:
- True if this set is a subset of the specified set;
false otherwise.