ArrayDeque

constructor(initialCapacity: Int)(source)

Constructs an empty deque with specified initialCapacity, or throws IllegalArgumentException if initialCapacity is negative.


constructor()(source)

Constructs an empty deque.


constructor(elements: Collection<E>)(source)

Constructs a deque that contains the same elements as the specified elements collection in the same order.