|
SolarMetric Kodo JDO 2.5.8 generated on January 11 2004 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--serp.util.SimpleLinkedList
Basic linked list data structure. All methods are designed with performance in mind, and all operate in constant time.
Note that this class does not implement the List
interface. That interface includes many methods
that are not necessary for situations in which the underlying
linked list representation is needed -- this class provides such a
representation, and nothing more.
Inner Class Summary | |
static class |
SimpleLinkedList.Entry
Deprecated. Doubly linked list element building block. |
class |
SimpleLinkedList.SimpleLinkedListIterator
Deprecated. |
Field Summary | |
protected SimpleLinkedList.Entry |
head
Deprecated. The first SimpleLinkedList.Entry element in this list. |
protected int |
size
Deprecated. The number of objects in this list. |
protected SimpleLinkedList.Entry |
tail
Deprecated. The last SimpleLinkedList.Entry element in this list. |
Constructor Summary | |
SimpleLinkedList()
Deprecated. |
Method Summary | |
void |
append(Object o)
Deprecated. Add a new SimpleLinkedList.Entry that contains o to the
end of this linked list. |
protected void |
appendEntry(SimpleLinkedList.Entry e)
Deprecated. Add e to the end of this linked list. |
void |
clear()
Deprecated. |
boolean |
equals(Object ob)
Deprecated. |
int |
hashCode()
Deprecated. |
SimpleLinkedList.Entry |
head()
Deprecated. |
Iterator |
iterator()
Deprecated. |
void |
prepend(Object o)
Deprecated. Add a new SimpleLinkedList.Entry that contains o to the
beginning of this linked list. |
protected void |
prependEntry(SimpleLinkedList.Entry e)
Deprecated. Add e to the beginning of this linked list. |
void |
removeEntry(SimpleLinkedList.Entry e)
Deprecated. Remove e from this linked list. |
Object |
removeFirst()
Deprecated. Remove the first element from this linked list. |
Object |
removeLast()
Deprecated. Remove the last element from this linked list. |
int |
size()
Deprecated. |
SimpleLinkedList.Entry |
tail()
Deprecated. |
Methods inherited from class java.lang.Object |
|
Field Detail |
protected SimpleLinkedList.Entry head
SimpleLinkedList.Entry
element in this list.protected SimpleLinkedList.Entry tail
SimpleLinkedList.Entry
element in this list.protected int size
Constructor Detail |
public SimpleLinkedList()
Method Detail |
public void prepend(Object o)
SimpleLinkedList.Entry
that contains o
to the
beginning of this linked list.protected void prependEntry(SimpleLinkedList.Entry e)
e
to the beginning of this linked list.public void append(Object o)
SimpleLinkedList.Entry
that contains o
to the
end of this linked list.protected void appendEntry(SimpleLinkedList.Entry e)
e
to the end of this linked list.public void removeEntry(SimpleLinkedList.Entry e)
e
from this linked list.public Object removeFirst()
public Object removeLast()
public SimpleLinkedList.Entry head()
public SimpleLinkedList.Entry tail()
public int size()
public Iterator iterator()
public void clear()
public boolean equals(Object ob)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
SolarMetric Kodo JDO 2.5.8 generated on January 11 2004 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |