get

open fun get(index: Int): E

Returns the element at the specified position in this queue.

Return

the element at position index

Parameters

index

the position of the element in the queue

Throws

if the requested position is outside the range [0, size)