drain_tail


Description:

public abstract int drain_tail (Collection<G> recipient, int amount = -1)

Drains the specified amount of elements from the tail of this queue in the specified recipient collection.

Parameters:

recipient

the recipient collection to drain the elements to

amount

the amount of elements to drain

Returns:

the amount of elements that were actually drained