|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object structure5.AbstractIterator<E> structure5.AbstractListIterator<E>
public abstract class AbstractListIterator<E>
Base class for the implementation of a list Iterator. The methods provided in this class have no executable bodies and will throw errors if the user attempts to invoke them.
Constructor Summary | |
---|---|
AbstractListIterator()
Default constructor (for base class invocation). |
Method Summary | |
---|---|
void |
add(E o)
|
abstract E |
get()
Returns the value currently being considered by the AbstractIterator. |
void |
remove()
If implemented, removes the currently visited value from the structure. |
void |
set(E o)
|
Methods inherited from class structure5.AbstractIterator |
---|
hasMoreElements, hasNext, iterator, next, nextElement, reset, value |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.ListIterator |
---|
hasNext, hasPrevious, next, nextIndex, previous, previousIndex |
Constructor Detail |
---|
public AbstractListIterator()
Method Detail |
---|
public abstract E get()
AbstractIterator
Iterator
nor
Enumeration
. This method should be implemented,
however, to provide better support for for
-loops.
get
in class AbstractIterator<E>
public void remove()
AbstractIterator
remove
should not be called unless it is overridden.
remove
in interface java.util.Iterator<E>
remove
in interface java.util.ListIterator<E>
remove
in class AbstractIterator<E>
public void set(E o)
set
in interface java.util.ListIterator<E>
public void add(E o)
add
in interface java.util.ListIterator<E>
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |