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, waitgetElementpublic T getPrev()
LinkedListEntrynull if this is the first entry.getPrev in interface LinkedListEntry<E,T extends AbstractBasicLinkedListEntry<E,T>>null.public void setPrev(T prev)
LinkedListEntrysetPrev in interface LinkedListEntry<E,T extends AbstractBasicLinkedListEntry<E,T>>prev - the new predecessor.public T getNext()
LinkedListEntrynull if this is the last entry.getNext in interface LinkedListEntry<E,T extends AbstractBasicLinkedListEntry<E,T>>null.public void setNext(T next)
LinkedListEntrysetNext in interface LinkedListEntry<E,T extends AbstractBasicLinkedListEntry<E,T>>next - the new successor.Copyright © 2020. All rights reserved.