1 | import { Collection } from "../Collection";
|
2 | import { LinkNode } from "../linklist/LinkNode";
|
3 | export 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 | }
|