From 16cbb02ee8d2dd164651c5079aac3d1a95451233 Mon Sep 17 00:00:00 2001 From: hertero Date: Tue, 30 Aug 2022 10:15:11 +0200 Subject: [PATCH] Formatierung und Kommentierung --- SimpleLinkedList/src/solution/Node.java | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) 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; } - - - }