public class Node { private T content = null; private Node nextNode = null; public Node(T content) { setContent(content); } private void setContent(T content) { this.content = content; } private T getContent() { return this.content; } private void setNextNode(Node nextNode) { this.nextNode = nextNode; } private Node getNextNode() { return this.nextNode; } }