- this.items = {}
- this.head = 0
- this.tail = 0
- this.max = 0
- }
-
- /**
- * Get the size of the queue.
- *
- * @returns The size of the queue.
- * @readonly
- */
- public get size (): number {
- return this.tail - this.head
- }
-
- /**
- * Get the maximum size of the queue.
- *
- * @returns The maximum size of the queue.
- * @readonly
- */
- public get maxSize (): number {
- return this.max