LinkedBlockingDeque.drainTo

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

  1. int drainTo(Collection!E c)
    class LinkedBlockingDeque(E)
    int
    drainTo
    (
    Collection!E c
    )
  2. int drainTo(Collection!E c, int maxElements)

Meta