Init
This commit is contained in:
25
Node.java
Normal file
25
Node.java
Normal file
@@ -0,0 +1,25 @@
|
||||
public class Node<T> {
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user