Class BoundedList.Node<T>
- java.lang.Object
-
- org.openjdk.jmc.common.collection.BoundedList.Node<T>
-
- All Implemented Interfaces:
BoundedList.INode<T>
- Enclosing class:
- BoundedList<T>
private static class BoundedList.Node<T> extends java.lang.Object implements BoundedList.INode<T>
Private class used to wrap values as nodes.
-
-
Field Summary
Fields Modifier and Type Field Description private BoundedList.INode<T>
next
private T
value
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Field Detail
-
value
private final T value
-
next
private BoundedList.INode<T> next
-
-
Constructor Detail
-
Node
public Node(T value)
-
-
Method Detail
-
getNext
public BoundedList.Node<T> getNext()
Description copied from interface:BoundedList.INode
Get the next node in the list.- Specified by:
getNext
in interfaceBoundedList.INode<T>
- Returns:
- the next node
-
setNext
public void setNext(BoundedList.INode<T> next)
Description copied from interface:BoundedList.INode
Set the next node in the list.- Specified by:
setNext
in interfaceBoundedList.INode<T>
- Parameters:
next
- the next node
-
getValue
public T getValue()
Description copied from interface:BoundedList.INode
Get the value of this node.- Specified by:
getValue
in interfaceBoundedList.INode<T>
- Returns:
- the node value
-
-