|
Tea Java Runtime API Version 3.1.0 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--com.pdmfc.tea.util.SList
Implements an ordered list of objects. The list can be traversed from its beggining to its end.
| Field Summary | |
protected SListNode |
_head
|
protected int |
_size
|
protected SListNode |
_tail
|
| Constructor Summary | |
SList()
This constructor builds an empty list. |
|
| Method Summary | |
void |
append(java.lang.Object obj)
Appends the object given as argument to the end of the list. |
java.util.Enumeration |
elements()
Deprecated. Use the method
instead. |
void |
empty()
Emptys the list. |
SListNode |
head()
|
java.util.Iterator |
iterator()
|
void |
prepend(java.lang.Object obj)
Inserts the object given as argument to the start of the list. |
int |
size()
Returns the number of elements on the list. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected SListNode _head
protected SListNode _tail
protected int _size
| Constructor Detail |
public SList()
| Method Detail |
public void append(java.lang.Object obj)
obj - Reference to the object to be appended to the end of the list.public void prepend(java.lang.Object obj)
obj - Reference to the object to be inserted at the start of the list.public void empty()
public int size()
public java.util.Iterator iterator()
public java.util.Enumeration elements()
iterator() method
instead.
public SListNode head()
|
Tea Java Runtime API Version 3.1.0 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||