Int Array Deque
A specialized array deque for int types, allowing no-autoboxing implementation. This is effectively just the Kotlin stdlib ArrayDeque class copied over and adjusted to work off of the primitive int.
Constructors
Constructs an empty deque with specified initialCapacity, or throws IllegalArgumentException if initialCapacity is negative.
Constructs an empty deque.
Constructs a deque that contains the same elements as the specified elements collection in the same order.
Properties
Functions
Returns the first element, or throws NoSuchElementException if this deque is empty.
Returns the first element, or null if this deque is empty.
Returns the last element, or throws NoSuchElementException if this deque is empty.
Returns the last element, or null if this deque is empty.
Removes the first element from this deque and returns that removed element, or throws NoSuchElementException if this deque is empty.
Removes the first element from this deque and returns that removed element, or returns default if this deque is empty.
Removes the first element from this deque and returns that removed element, or returns null if this deque is empty.
Removes the last element from this deque and returns that removed element, or throws NoSuchElementException if this deque is empty.
Removes the last element from this deque and returns that removed element, or returns null if this deque is empty.