The SingletonList class is designed to implement a singleton queue.
SingletonList
SingletonList 类用于实现单例队列。
[Read-only] The array storing the elements of the queue.
[只读] 存储队列元素的数组。
[Read-only] The current length of the queue.
[只读] 队列的当前长度。
The element to add.
Adds an element to the list if it is not already present.
如果元素尚未存在于列表中,则添加该元素。
The SingletonList containing elements to add.
Adds all elements from another SingletonList to this list.
将另一个 SingletonList 中的所有元素添加到此列表中。
Trims the elements array to match the current length of the list.
将元素数组的长度调整为与列表的当前长度相匹配。
Clears the list, removing all elements.
清除列表,移除所有元素。
Destroys the list by nullifying the elements array.
通过将元素数组置为 null 来销毁列表。
The element to find.
Finds the index of an element in the list.
在列表中查找元素的索引。
The element to remove.
Removes an element from the list.
从列表中移除一个元素。
En
The
SingletonList
class is designed to implement a singleton queue.Zh
SingletonList 类用于实现单例队列。