T
- type of the stored elementspublic static interface BoundedList.INode<T>
The most obvious implementation of these methods by a class is like this:
public INode<MyValue> getNext() {
return next;
}
public void setNext(INode<MyValue> next) {
this.next = next;
}
public MyValue getValue() {
return this;
}
Modifier and Type | Method and Description |
---|---|
BoundedList.INode<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.
|
BoundedList.INode<T> getNext()
void setNext(BoundedList.INode<T> next)
next
- the next nodeT getValue()
Copyright © 2020. All rights reserved.