Interface COM.odi.util.Iterator

public interface Iterator
This is the COM.odi.util version of java.util.Iterator, which will be generally available in the JDK 1.2. At that time, COM.odi.util.Iterator will be obsoleted, in favor of the interface in java.util.Iterator.


Method Index

 o hasNext()
Returns true if the iteration has more elements.
 o next()
Returns the next element in the interation.
 o remove()
Removes from the underlying Collection the last element returned by the Iterator .

Methods

 o hasNext
  public abstract boolean hasNext()
Returns true if the iteration has more elements.

 o next
  public abstract Object next()
Returns the next element in the interation.

Throws: NoSuchElementException
iteration has no more elements.
 o remove
  public abstract void remove()
Removes from the underlying Collection the last element returned by the Iterator . This method can be called only once per call to next The behavior of an Iterator is unspecified if the underlying Collection is modified while the iteration is in progress in any way other than by calling this method. Optional operation.

Throws: UnsupportedOperationException
remove is not supported by this Iterator.
Throws: NoSuchElementException
next has not yet been called, or remove has already been called after the last call to next.

Copyright © 1996, 1997, 1998 Object Design, Inc. All rights reserved.