diff --git a/SimpleLinkedList/src/solution/Node.java b/SimpleLinkedList/src/solution/Node.java index 7e412f3..425c5f3 100644 --- a/SimpleLinkedList/src/solution/Node.java +++ b/SimpleLinkedList/src/solution/Node.java @@ -5,41 +5,32 @@ public class Node { private Node successor; // Nachfolger private E payload; // Nutzlast - + //Konstruktor mit Parameter payload public Node(E payload) { this.payload = payload; } - public Node getPredecessor() { return predecessor; } - public void setPredecessor(Node predecessor) { this.predecessor = predecessor; } - public Node getSuccessor() { return successor; } - public void setSuccessor(Node e) { this.successor = e; } - public E getPayload() { return payload; } - public void setPayload(E payload) { this.payload = payload; } - - - }