UNPKG

algs-adt

Version:

An npm package for using data structures like queues or graphs in javascript or typescript

26 lines (25 loc) 746 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.LinkedNode = void 0; var LinkedNode = /** @class */ (function () { function LinkedNode(value) { this.value = value; } LinkedNode.prototype.getNext = function () { return this.next; }; LinkedNode.prototype.setNext = function (value) { this.next = value; }; LinkedNode.prototype.getValue = function () { return this.value; }; LinkedNode.prototype.setValue = function (value) { this.value = value; }; LinkedNode.prototype.hasNext = function () { return this.next !== undefined; }; return LinkedNode; }()); exports.LinkedNode = LinkedNode;