Constructor Summary
Public Constructor | ||
public |
constructor(args: ...*) |
Member Summary
Public Members | ||
public get |
length: number |
Protected Members | ||
protected |
_queue: LinkedList<V|*> |
Method Summary
Public Methods | ||
public |
clear(): void |
|
public |
dequeue(): V | * |
|
public |
dequeueMulti(count: number): Array<V|*> |
|
public |
enqueue(value: V | *): void |
|
public |
enqueueAll(values: Array<V|*>): void |
|
public |
isEmpty(): boolean |
|
public |
peek(): V | * |
Protected Methods | ||
protected |
_newQueue(args: ...*): LinkedList<V|*> |
Public Constructors
public constructor(args: ...*) source
Params:
Name | Type | Attribute | Description |
args | ...* |
Public Members
public get length: number source
Protected Members
protected _queue: LinkedList<V|*> source
Public Methods
public dequeueMulti(count: number): Array<V|*> source
Params:
Name | Type | Attribute | Description |
count | number |
Return:
Array<V|*> |
public enqueue(value: V | *): void source
Params:
Name | Type | Attribute | Description |
value | V | * |
Return:
void |
public enqueueAll(values: Array<V|*>): void source
Params:
Name | Type | Attribute | Description |
values | Array<V|*> |
Return:
void |
Protected Methods
protected _newQueue(args: ...*): LinkedList<V|*> source
Params:
Name | Type | Attribute | Description |
args | ...* |