public interface ISet<E> extends Iterable<E>
Modifier and Type  Method and Description 

boolean 
add(E item)
Add an item to this set.

boolean 
addAll(ISet<E> otherSet)
A union operation.

void 
clear()
Make this set empty.

boolean 
contains(E item)
Determine if item is in this set.

boolean 
containsAll(ISet<E> otherSet)
Determine if all of the elements of otherSet are in this set.

ISet<E> 
difference(ISet<E> otherSet)
Create a new set that is the difference of this set and otherSet.

boolean 
equals(Object other)
Determine if this set is equal to other.

ISet<E> 
intersection(ISet<E> otherSet)
create a new set that is the intersection of this set and otherSet.

Iterator<E> 
iterator()
Return an Iterator object for the elements of this set.

boolean 
remove(E item)
Remove the specified item from this set if it is present.

int 
size()
Return the number of elements of this set.

ISet<E> 
union(ISet<E> otherSet)
Create a new set that is the union of this set and otherSet.

boolean add(E item)
item
 the item to be added to this set. item may not equal null.boolean addAll(ISet<E> otherSet)
otherSet
 != nullvoid clear()
boolean contains(E item)
item
 element whose presence is being tested. Item may not equal null.boolean containsAll(ISet<E> otherSet)
otherSet
 != nullISet<E> difference(ISet<E> otherSet)
otherSet
 != nullboolean equals(Object other)
ISet<E> intersection(ISet<E> otherSet)
otherSet
 != nullboolean remove(E item)
item
 the item to remove from the set. item may not equal null.int size()
ISet<E> union(ISet<E> otherSet)
otherSet
 != null