A ReadableQueue is a queue that is “transparent”: its items can all be seen at once. It offers the additonal operations:
length
isEmpty
items
get()
T : the type of items in this ReadableQueue
Rest
Protected
Readonly
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 queueisEmpty: does the queue have 0 items?items: inspect a copy of the entire queue as an arrayget(): inspect an arbitrary item in the queueTypeparam
T : the type of items in this ReadableQueue