CircularFifoQueue

constructor()

Constructor that creates a queue with the default size of 32.


constructor(coll: Collection<out E>)

Constructor that creates a queue from the specified collection. The collection size also sets the queue size.

Parameters

coll

the collection to copy into the queue, may not be null

Throws

if the collection is null


constructor(size: Int)

Constructor that creates a queue with the specified size.

Parameters

size

the size of the queue (cannot be changed)

Throws