Class ReadableQueue<T>

A ReadableQueue is a queue that is “transparent”: its items can all be seen at once. It offers the additonal operations:

  • length: the number of items in the queue
  • isEmpty: does the queue have 0 items?
  • items: inspect a copy of the entire queue as an array
  • get(): inspect an arbitrary item in the queue

Typeparam

T : the type of items in this ReadableQueue

Type Parameters

  • T

Hierarchy (view full)

Constructors

Properties

Accessors

Methods

Constructors

Properties

internal: LinkedList<T>

Accessors

Methods