public static class DLCyclicList.DLNode<T>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected DLCyclicList.DLNode<T> |
next |
protected T |
obj |
protected DLCyclicList.DLNode<T> |
prev |
Constructor and Description |
---|
DLNode(T obj) |
DLNode(T obj,
DLCyclicList.DLNode<T> prev,
DLCyclicList.DLNode<T> next) |
Modifier and Type | Method and Description |
---|---|
T |
clear()
Clears the node and returns its object
|
DLCyclicList.DLNode<T> |
getNext()
Return next node of the doubly linked list
|
T |
getObject()
Returns the object represented by the node
|
DLCyclicList.DLNode<T> |
getPrev()
Returns previous node of the doubly linked list
|
protected T obj
protected DLCyclicList.DLNode<T> prev
protected DLCyclicList.DLNode<T> next
public DLNode(T obj)
public DLNode(T obj, DLCyclicList.DLNode<T> prev, DLCyclicList.DLNode<T> next)
public T getObject()
public DLCyclicList.DLNode<T> getPrev()
public DLCyclicList.DLNode<T> getNext()
public T clear()