Opus5
Interface Multiset
- All Superinterfaces:
- Comparable, Container, SearchableContainer
- All Known Implementing Classes:
- MultisetAsLinkedList, MultisetAsArray
- public interface Multiset
- extends SearchableContainer
Encapsulates methods common to all multisets.
- Version:
- $Id: Multiset.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
|
copyright
public static final java.lang.String copyright
union
public Multiset union(Multiset 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 Multiset intersection(Multiset 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 Multiset difference(Multiset 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(Multiset 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(Multiset 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.