previous | start | next

## `Collection<E>` Interface Type

- Collection holds elements in some way
- Different data structures have different storage strategies

    boolean add(E obj)
    boolean addAll(Collection c)
    void clear()
    boolean contains(E obj)
    boolean containsAll(Collection c)
    boolean equals(E obj)
    int hashCode()
    boolean isEmpty()
    Iterator iterator()
    boolean remove(E obj)
    boolean removeAll(Collection c)
    boolean retainAll(Collection c)
    int size()
    E[] toArray()
    E[] toArray(E[] a)

previous | start | next