@return number of elements added to the collection
@throws UnsupportedOperationException if the add operation is not
supported by the specified collection
@throws ClassCastException if the class of the elements held by this
collection prevents them from being added to the specified
collection
@throws NullPointerException if c is null
@throws IllegalArgumentException if c is this instance
Drains the queue to the specified collection.
@param c The collection to add the elements to
@return number of elements added to the collection
@throws UnsupportedOperationException if the add operation is not supported by the specified collection @throws ClassCastException if the class of the elements held by this collection prevents them from being added to the specified collection @throws NullPointerException if c is null @throws IllegalArgumentException if c is this instance