Android
java.util
public interface

java.util.Iterator<E>

java.util.Iterator<E>

An Iterator is used to sequence over a collection of objects.

Known Indirect Subclasses

Summary

Public Methods

          boolean  hasNext()
Returns if there are more elements to iterate.
          next()
Returns the next object in the iteration.
          void  remove()
Removes the last object returned by next from the collection.

Details

Public Methods

public boolean hasNext()

Returns if there are more elements to iterate.

Returns

  • true if there are more elements, false otherwise

See Also

public E next()

Returns the next object in the iteration.

Returns

  • the next object

Throws

NoSuchElementException when there are no more elements

See Also

public void remove()

Removes the last object returned by next from the collection.

Throws

UnsupportedOperationException when removing is not supported by the collection being iterated
IllegalStateException when next has not been called, or remove has already been called after the last call to next
Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:48