Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client
11g Release 1 (11.1.1)

E17503-02

oracle.adfnmc.java.util
Interface Iterator

All Known Subinterfaces:
ListIterator
All Known Implementing Classes:
EnumerationIteratorAdaptor

public interface Iterator

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


Method Summary
 boolean hasNext()
          Answers if there are more elements to iterate.
 java.lang.Object next()
          Answers the next object in the iteration.
 void remove()
          Removes the last object returned by next from the collection.
 

Method Detail

hasNext

boolean hasNext()
Answers if there are more elements to iterate.

Returns:
true if there are more elements, false otherwise
See Also:
next()

next

java.lang.Object next()
Answers the next object in the iteration.

Returns:
the next object
Throws:
NoSuchElementException - when there are no more elements
See Also:
hasNext()

remove

void remove()
Removes the last object returned by next from the collection.

Throws:
java.lang.UnsupportedOperationException - when removing is not supported by the collection being iterated
java.lang.IllegalStateException - when next has not been called, or remove has already been called after the last call to next

Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client
11g Release 1 (11.1.1)

E17503-02

Copyright © 2011, Oracle and/or its affiliates. All rights reserved.