1 | import { AbstractSet } from "../interface/AbstractSet";
|
2 | export declare class HashSet<T = string> extends AbstractSet<T> {
|
3 | private hashtable;
|
4 | private static DEFAULT_TABLE_SIZE;
|
5 | readonly Size: number;
|
6 | constructor(capacity?: number);
|
7 | add(item: T): this;
|
8 | has(element: T): boolean;
|
9 | remove(element: T): boolean;
|
10 | clear(): void;
|
11 | entries(): any[];
|
12 | diff(set: AbstractSet<T>): Array<T>;
|
13 | union(set: AbstractSet<T>): Array<T>;
|
14 | intersect(set: AbstractSet<T>): Array<T>;
|
15 | static fromArray<T>(array: Array<T>): HashSet<T>;
|
16 | }
|