structure
Class AbstractListIterator

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

public abstract class AbstractListIterator
extends AbstractIterator
implements java.util.ListIterator


Constructor Summary
AbstractListIterator()
          Default constructor (for base class invocation).
 
Method Summary
 void add(java.lang.Object o)
           
abstract  java.lang.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(java.lang.Object o)
           
 
Methods inherited from class structure.AbstractIterator
hasMoreElements, hasNext, 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

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.

Postcondition:
does nothing
Method Detail

get

public abstract java.lang.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 java.util.Iterator
Specified by:
remove in interface java.util.ListIterator
Overrides:
remove in class AbstractIterator

set

public void set(java.lang.Object o)
Specified by:
set in interface java.util.ListIterator

add

public void add(java.lang.Object o)
Specified by:
add in interface java.util.ListIterator