A Collection is a lot of work


interface Collection
{
  boolean add(Object o);
  boolean addAll(Collection c);
  void clear();
  boolean contains(Object o);
  boolean containsAll(Collection c);
  boolean equals(Object o);
  int hashCode();
  boolean isEmpty();
  Iterator iterator();
  boolean remove(Object o);
  boolean removeAll(Collection c);
  boolean retainAll(Collection c);
  int size();
  Object[] toArray();
  Object[] toArray(Object[] a);
}
Implementing a new Collection in Java carries a degree of overhead. A lot of these methods might not even make sense in many cases. For the search, the only method I actually need is iterator(), but we've already seen than an iterator might not be intimately associated with a Collection.