Home Reference Source Test
public class | source

UniqueQueue

Extends:

Queue → UniqueQueue

Direct Subclass:

ThrottledQueue

Constructor Summary

Public Constructor
public

constructor(fnHash: function(o: object): string)

Method Summary

Public Methods
public

contains(value: V | *): boolean

public

remove(value: V | *): void

public

requeue(value: V | *): void

Protected Methods
protected

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

Inherited Summary

From class Queue
public get

length: number

protected
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

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

Public Constructors

public constructor(fnHash: function(o: object): string) source

Override:

Queue#constructor

Params:

NameTypeAttributeDescription
fnHash function(o: object): string
  • optional

Public Methods

public contains(value: V | *): boolean source

Params:

NameTypeAttributeDescription
value V | *

Return:

boolean

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

Params:

NameTypeAttributeDescription
value V | *

Return:

void

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

Params:

NameTypeAttributeDescription
value V | *

Return:

void

Protected Methods

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

Override:

Queue#_newQueue

Params:

NameTypeAttributeDescription
args *

Return:

LinkedList<V|*>