Interface IHashSet

Index

Methods

Methods

public add(value: TValue in IHashSet<TValue>)

Parameters

  • value: TValue in IHashSet<TValue>

public addAll(arr: Array<TValue>)

Parameters

  • arr: Array<TValue>

public clear()

public clone(): IHashSet

Returns

IHashSet

public complement(set: IHashSet): IHashSet

Parameters

Returns

IHashSet

public contains(value: TValue in IHashSet<TValue>): boolean

Parameters

  • value: TValue in IHashSet<TValue>

Returns

boolean

public intersection(set: IHashSet): IHashSet

Parameters

Returns

IHashSet

public isEmpty(): boolean

Returns

boolean

public isSubsetOf(set: IHashSet): boolean

Parameters

Returns

boolean

public remove(value: TValue in IHashSet<TValue>)

Parameters

  • value: TValue in IHashSet<TValue>

public size(): number

Returns

number

public union(set: IHashSet): IHashSet

Parameters

Returns

IHashSet

public values(): Array<TValue>

Returns

Array<TValue>