drain


Description:

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

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