structure
Class AbstractListIterator

java.lang.Object
  extended by structure.AbstractIterator
      extended by structure.AbstractListIterator
All Implemented Interfaces:
Enumeration, Iterator, ListIterator

public abstract class AbstractListIterator
extends AbstractIterator
implements ListIterator


Constructor Summary
AbstractListIterator()
          Default constructor (for base class invocation).
 
Method Summary
 void add(Object o)
           
abstract  Object get()
          Returns the value currently being considered by the AbstractIterator.
 void remove()
          If implemented, removes the currently visited value from the structure.
 void set(Object o)
           
 
Methods inherited from class structure.AbstractIterator
hasMoreElements, hasNext, next, nextElement, reset, value
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.ListIterator
hasNext, hasPrevious, next, nextIndex, previous, previousIndex
 

Constructor Detail

AbstractListIterator

public AbstractListIterator()
Default constructor (for base class invocation). Does nothing. Remind Sun (jdk-comments@java.sun.com) that automatically implemented default constructors are a silly thing.

Method Detail

get

public abstract Object get()
Description copied from class: AbstractIterator
Returns the value currently being considered by the AbstractIterator. This method is required by neither Iterator nor Enumeration. This method should be implemented, however, to provide better support for for-loops.

Specified by:
get in class AbstractIterator
Returns:
the next value to be considered in iterator

remove

public void remove()
Description copied from class: AbstractIterator
If implemented, removes the currently visited value from the structure. remove should not be called unless it is overridden.

Specified by:
remove in interface Iterator
Specified by:
remove in interface ListIterator
Overrides:
remove in class AbstractIterator

set

public void set(Object o)
Specified by:
set in interface ListIterator

add

public void add(Object o)
Specified by:
add in interface ListIterator