|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IteratorI<T>
An iterator that traverses a collection of elements of type T possibly modifying it. As the iterator traverses the list, the list behaves as if it is circular with a dummy element between the last and first elements.
Method Summary | |
---|---|
void |
insert(T o)
Destructively inserts the object o immediately before the current item. |
T |
remove()
Removes the current element e. |
Methods inherited from interface edu.rice.comp211.laundry.iterator.ReadIteratorI |
---|
atEnd, atStart, currentItem, first, next |
Method Detail |
---|
void insert(T o)
T remove()
IteratorException
- if the cursor is atEnd() (at the dummy element).
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |