The SingletonList class is designed to implement a singleton queue.

SingletonList 类用于实现单例队列。

类型参数

  • T

层级 (查看完整内容)

构造函数

属性

elements: T[] = []

[Read-only] The array storing the elements of the queue.

[只读] 存储队列元素的数组。

length: number = 0

[Read-only] The current length of the queue.

[只读] 队列的当前长度。

方法