The Collection Interface


public interface Collection<T> extends Iterable<T>, Serializable
{
    void add(T data) throws EntryAlreadyExistsException;
    
    void addAll(Iterable<T> c);
    
    void clear();
    
    boolean contains(T key);
    
    boolean containsAll(Iterable<T> c);
    
    boolean equals(Collection<T> c);
    
    int hashCode();
    
    Iterator<T> iterator();    
    
    void remove(T t) throws EntryNotFoundException;
    
    void removeAll(Iterable<T> c);
    
    void removeIf(Predicate<T> filter);
    
    void retainAll(Collection<T> c);
    
    long size();
}