get

operator fun get(i: Int): T

Gets the target queue element without removing it from the queue.

Return

The queue element at index i.

Parameters

i

Index of the queue element to get.

Throws

If i is less than zero or is greater than or equal to size.