UNPKG

389 BTypeScriptView Raw
1import { Collection } from "../Collection";
2import { LinkNode } from "../linklist/LinkNode";
3export declare class Queue<T> extends Collection<LinkNode<T>> {
4 private linkList;
5 constructor();
6 isEmpty(): boolean;
7 peek(): T;
8 enqueue(value: T): void;
9 dequeue(): T;
10 toString(): string;
11 protected __iterate(fn: (item: LinkNode<T>, index: number) => void): void;
12}