1 | export declare class HashTable<T> {
|
2 | private buckets;
|
3 | private count;
|
4 | private threshold;
|
5 | private keys;
|
6 | private static DEFAULT_TABLE_SIZE;
|
7 | private static readonly LOADFACTOR;
|
8 | static setDefaultTableSize(size: number): void;
|
9 | readonly Count: number;
|
10 | readonly TableSize: number;
|
11 | constructor(size?: number);
|
12 | put(key: any, value: T): this;
|
13 | get(key: any): T;
|
14 | remove(key: any): boolean;
|
15 | contains(key: any): boolean;
|
16 | getKeys(): Array<string>;
|
17 | getOrignalKeys(): Array<any>;
|
18 | values(): Array<T>;
|
19 | clear(): void;
|
20 | getHashKey(key: any): number;
|
21 | toString(): string;
|
22 | private iterate;
|
23 | private rehash;
|
24 | private mod;
|
25 | }
|