UNPKG

807 BTypeScriptView Raw
1import { DoubleLinkListNode } from "../doublelinklist/ZKDoubleLinkListNode";
2import { IEnumerable } from "../interface/IEnumerable";
3import { IEnumerator } from "../interface/IEnumerator";
4export declare class DoubleLinkListCycle<T> implements IEnumerable<T> {
5 private headNode;
6 private tailNode;
7 private size;
8 constructor();
9 readonly Size: number;
10 append(node: T): this;
11 prepend(node: T): this;
12 private emptyList;
13 shift(): DoubleLinkListNode<T>;
14 pop(): DoubleLinkListNode<T>;
15 deleteNode(arg: any): number[];
16 findNode(arg: any): DoubleLinkListNode<T>;
17 getHeadNode(): DoubleLinkListNode<T>;
18 getTailNode(): DoubleLinkListNode<T>;
19 isEmpty(): boolean;
20 toString(): string;
21 getEnumerator(): IEnumerator<T>;
22}
23export default DoubleLinkListCycle;