A Queue implementation that extends this class must
minimally define a method offer(Object) which does not permit
insertion of null elements, along with methods peek() , poll() , size() , and a
iterator() supporting remove() . Typically, additional methods will be overridden
as well. If these requirements cannot be met, consider instead
subclassing AbstractCollection .
This class is a member of the
Java Collections Framework.