|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectptolemy.actor.gt.data.FastLinkedList.Entry
public class FastLinkedList.Entry
An entry in this linked list that contains an element.
| Red (tfeng) |
| Yellow (tfeng) |
| Field Summary | |
|---|---|
private E |
_element
The element. |
private FastLinkedList<E> |
_list
The linked list containing this entry. |
private FastLinkedList.Entry |
_next
The next entry, or null. |
private FastLinkedList.Entry |
_previous
The previous entry, or null. |
| Constructor Summary | |
|---|---|
private |
FastLinkedList.Entry(FastLinkedList<E> list,
E element)
Construct an entry in a linked list with an element. |
| Method Summary | |
|---|---|
E |
getElement()
Get the element in this entry. |
FastLinkedList<E> |
getList()
Get the linked list that contains this entry. |
FastLinkedList.Entry |
getNext()
Get the next entry. |
FastLinkedList.Entry |
getPrevious()
Get the previous entry. |
boolean |
hasNext()
Test whether there is a next entry. |
boolean |
hasPrevious()
Test whether there is a previous entry. |
void |
remove()
Remove this entry from the linked list that contains it. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private E _element
private FastLinkedList<E> _list
private FastLinkedList.Entry _next
private FastLinkedList.Entry _previous
| Constructor Detail |
|---|
private FastLinkedList.Entry(FastLinkedList<E> list,
E element)
list - The linked list.element - The element.| Method Detail |
|---|
public E getElement()
public FastLinkedList<E> getList()
public FastLinkedList.Entry getNext()
public FastLinkedList.Entry getPrevious()
public boolean hasNext()
public boolean hasPrevious()
public void remove()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||