LinkedBlockingQueue

constructor(capacity: Int = Int.MAX_VALUE)


constructor(c: MutableCollection<E>)

Creates a LinkedBlockingQueue with a capacity of Integer.MAX_VALUE, initially containing the elements of the given collection, added in traversal order of the collection's iterator.

Parameters

c

the collection of elements to initially contain

Throws

if the specified collection or any of its elements are null