uka.util
Interface Iterator

All Known Implementing Classes:
Sequence

public interface Iterator

This class represents iterators over collections of Object values.

Since:
1.0
Version:
1.0 2002/29/12
Author:
Søren Bak
See Also:
Iterator

Method Summary
 boolean hasNext()
          Indicates whether more Object values can be returned by this iterator.
 java.lang.Object next()
          Returns the next Object value of this iterator.
 void remove()
          Removes the last Object value returned from the underlying collection.
 

Method Detail

hasNext

public boolean hasNext()
Indicates whether more Object values can be returned by this iterator.

Returns:
true if more Object values can be returned by this iterator; returns false otherwise.
See Also:
next()

next

public java.lang.Object next()
Returns the next Object value of this iterator.

Returns:
the next Object value of this iterator.
Throws:
java.util.NoSuchElementException - if no more elements are available from this iterator.
See Also:
hasNext()

remove

public void remove()
Removes the last Object value returned from the underlying collection.

Throws:
java.lang.UnsupportedOperationException - if removal is not supported by this iterator.
java.lang.IllegalStateException - if no element has been returned by this iterator yet.