Upsilon-VsCode/Client/node_modules/vscode-jsonrpc/lib/linkedMap.d.ts

30 lines
829 B
TypeScript
Raw Normal View History

2019-02-17 17:07:28 +00:00
export declare namespace Touch {
const None: 0;
const First: 1;
const Last: 2;
}
export declare type Touch = 0 | 1 | 2;
export declare class LinkedMap<K, V> {
private _map;
private _head;
private _tail;
private _size;
constructor();
clear(): void;
isEmpty(): boolean;
readonly size: number;
has(key: K): boolean;
get(key: K): V | undefined;
set(key: K, value: V, touch?: Touch): void;
delete(key: K): boolean;
shift(): V | undefined;
forEach(callbackfn: (value: V, key: K, map: LinkedMap<K, V>) => void, thisArg?: any): void;
forEachReverse(callbackfn: (value: V, key: K, map: LinkedMap<K, V>) => void, thisArg?: any): void;
values(): V[];
keys(): K[];
private addItemFirst;
private addItemLast;
private removeItem;
private touch;
}