private static class BoundedList.Node<T> extends java.lang.Object implements BoundedList.INode<T>
Modifier and Type | Field and Description |
---|---|
private BoundedList.INode<T> |
next |
private T |
value |
Modifier and Type | Method and Description |
---|---|
BoundedList.Node<T> |
getNext()
Get the next node in the list.
|
T |
getValue()
Get the value of this node.
|
void |
setNext(BoundedList.INode<T> next)
Set the next node in the list.
|
private final T value
private BoundedList.INode<T> next
public Node(T value)
public BoundedList.Node<T> getNext()
BoundedList.INode
getNext
in interface BoundedList.INode<T>
public void setNext(BoundedList.INode<T> next)
BoundedList.INode
setNext
in interface BoundedList.INode<T>
next
- the next nodepublic T getValue()
BoundedList.INode
getValue
in interface BoundedList.INode<T>