Browse Source

Formatierung und Kommentierung

vollständige_und_weitere_testate
hertero 3 years ago
committed by chris
parent
commit
16cbb02ee8
  1. 11
      SimpleLinkedList/src/solution/Node.java

11
SimpleLinkedList/src/solution/Node.java

@ -5,41 +5,32 @@ public class Node <E>{
private Node<E> successor; // Nachfolger private Node<E> successor; // Nachfolger
private E payload; // Nutzlast private E payload; // Nutzlast
//Konstruktor mit Parameter payload
public Node(E payload) { public Node(E payload) {
this.payload = payload; this.payload = payload;
} }
public Node<E> getPredecessor() { public Node<E> getPredecessor() {
return predecessor; return predecessor;
} }
public void setPredecessor(Node<E> predecessor) { public void setPredecessor(Node<E> predecessor) {
this.predecessor = predecessor; this.predecessor = predecessor;
} }
public Node<E> getSuccessor() { public Node<E> getSuccessor() {
return successor; return successor;
} }
public void setSuccessor(Node<E> e) { public void setSuccessor(Node<E> e) {
this.successor = e; this.successor = e;
} }
public E getPayload() { public E getPayload() {
return payload; return payload;
} }
public void setPayload(E payload) { public void setPayload(E payload) {
this.payload = payload; this.payload = payload;
} }
} }

Loading…
Cancel
Save