|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.rice.comp211.laundry.list.BiList.BiIterator
private class BiList.BiIterator
A class used to generate iterators for this list. A genuine named inner class that includes a link (BiList.this) to the enclosing BiList.
Field Summary | |
---|---|
(package private) BiList.Node<T> |
current
The current node the iterator is pointing to |
Constructor Summary | |
---|---|
BiList.BiIterator()
Constructor for the class Initializes the current node to reference the front of the list |
Method Summary | |
---|---|
boolean |
atEnd()
|
boolean |
atStart()
Returns true if BiList is non-empty and current is the first node in the list. |
T |
currentItem()
|
void |
first()
Moves cursor to first element of the collection. |
void |
insert(T o)
Destructively inserts the object o immediately before the current item. |
void |
last()
Puts the cursor on the last element of the collection. |
void |
next()
Moves cursor to next element of the collection. |
void |
prev()
Puts the cursor on the previous element of the collection. |
T |
remove()
Removes the current element e. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
BiList.Node<T> current
Constructor Detail |
---|
BiList.BiIterator()
Method Detail |
---|
public void first()
ReadIteratorI
first
in interface ReadIteratorI<T>
public void last()
BiIteratorI
last
in interface BiIteratorI<T>
public void next()
ReadIteratorI
next
in interface ReadIteratorI<T>
public void prev()
BiIteratorI
prev
in interface BiIteratorI<T>
public T currentItem()
currentItem
in interface ReadIteratorI<T>
public boolean atEnd()
atEnd
in interface ReadIteratorI<T>
public boolean atStart()
atStart
in interface ReadIteratorI<T>
public void insert(T o)
IteratorI
insert
in interface IteratorI<T>
public T remove()
IteratorI
remove
in interface IteratorI<T>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |