Home Reference Source Test
public class | source

Queue

Direct Subclass:

UniqueQueue

Indirect Subclass:

ThrottledQueue

Constructor Summary

Public Constructor
public

constructor(args: *)

Member Summary

Public Members
public get

length: number

Protected Members
protected

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:

NameTypeAttributeDescription
args *

Public Members

public get length: number source

Protected Members

protected _queue: LinkedList<V|*> source

Public Methods

public clear(): void source

Return:

void

public dequeue(): V | * source

Return:

V | *

public dequeueMulti(count: number): Array<V|*> source

Params:

NameTypeAttributeDescription
count number

Return:

Array<V|*>

public enqueue(value: V | *): void source

Params:

NameTypeAttributeDescription
value V | *

Return:

void

public enqueueAll(values: Array<V|*>): void source

Params:

NameTypeAttributeDescription
values Array<V|*>

Return:

void

public isEmpty(): boolean source

Return:

boolean

public peek(): V | * source

Return:

V | *

Protected Methods

protected _newQueue(args: *): LinkedList<V|*> source

Params:

NameTypeAttributeDescription
args *

Return:

LinkedList<V|*>