unorderedElements property

Iterable<E> unorderedElements

Provides efficient access to all the elements currently in the queue.

The operation should be performed without copying or moving the elements, if at all possible.

The elements are iterated in no particular order. The order is stable as long as the queue is not modified. The queue must not be modified during an iteration.

Implementation

Iterable<E> get unorderedElements;