export class LinkNode{ constructor(private value: T, private next: LinkNode = null){ } public get Value(){ return this.value; } public get Next(){ return this.next; } public setValue(value: T){ this.value = value; } public setNext(node: LinkNode){ this.next = node; } public toString(){ return `${this.value}`; } }