E
- element class.T
- linked list entry class.public abstract class AbstractBasicLinkedListEntry<E,T extends AbstractBasicLinkedListEntry<E,T>> extends Object implements LinkedListEntry<E,T>
Constructor and Description |
---|
AbstractBasicLinkedListEntry() |
Modifier and Type | Method and Description |
---|---|
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getElement
public T getPrev()
LinkedListEntry
null
if this is the first entry.getPrev
in interface LinkedListEntry<E,T extends AbstractBasicLinkedListEntry<E,T>>
null
.public void setPrev(T prev)
LinkedListEntry
setPrev
in interface LinkedListEntry<E,T extends AbstractBasicLinkedListEntry<E,T>>
prev
- the new predecessor.public T getNext()
LinkedListEntry
null
if this is the last entry.getNext
in interface LinkedListEntry<E,T extends AbstractBasicLinkedListEntry<E,T>>
null
.public void setNext(T next)
LinkedListEntry
setNext
in interface LinkedListEntry<E,T extends AbstractBasicLinkedListEntry<E,T>>
next
- the new successor.Copyright © 2020. All rights reserved.