E
- element class.T
- linked list entry class.public interface LinkedListEntry<E,T extends LinkedListEntry<E,T>> extends ElementReference
Modifier and Type | Method and Description |
---|---|
E |
getElement()
Retrieves the element stored at this position in the list.
|
T |
getNext()
Retrieves the next entry in the list, or
null if
this is the last entry. |
T |
getPrev()
Retrieves the previous entry in the list, or
null if
this is the first entry. |
void |
setNext(T next)
Sets the successor of this entry.
|
void |
setPrev(T prev)
Sets the predecessor of this entry.
|
E getElement()
T getPrev()
null
if
this is the first entry.null
.T getNext()
null
if
this is the last entry.null
.void setPrev(T prev)
prev
- the new predecessor.Copyright © 2015. All Rights Reserved.