//import java.util.Iterator; /**simplified version of the java.util set interface*/ public interface Set extends Iterable{ /**Adds the specified element to this set if not already present*/ public boolean add(E e); /**Removes all of the elements from this set*/ public void clear(); /**Returns true if this set contains the specified element*/ public boolean contains(E e); ///**Compares the specified object with this set for equality*/ //public boolean equals(Object o); ///**Returns the hash code value for this set*/ //public int hashCode(); /**Returns true if this set contains no elements*/ public boolean isEmpty(); ///**Returns an iterator over the elements in this set*/ //public Iterator iterator(); //will get this for free /**Removes the specified element from this set, if it is present*/ public boolean remove(E e); /**Returns the number of elements in this set (its cardinality)*/ public int size(); }