|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Iterator<E>
An iterator over a collection. Iterator are especially used to iterate over a collection object when it's the target of the "foreach" statement. This Java Card interface is a subset of the CDC 1.1 Iterator interface. Some interfaces, methods and/or variables have been pruned, and/or other methods simplified, in an effort to reduce the size of this class and/or eliminate dependencies on unsupported features.
Enumeration
,
Iterable
Method Summary | |
---|---|
boolean |
hasNext()
Returns true if the iteration has more elements. |
E |
next()
Returns the next element in the iteration. |
Method Detail |
---|
boolean hasNext()
E next()
hasNext()
method returns false will return each
element in the underlying collection exactly once.
NoSuchElementException
- iteration has no more elements.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |