|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
An object that implements the MeIterator interface generates a series of
elements, one at a time. Successive calls to the next method
return successive elements of the series.
For example, to print all elements of a MeTreeSet t :
for (MeIterator i = t.iterator() ; i.hasNext() ;) {
System.out.println(i.next());
}
| Method Summary | |
int |
elementCount()
Deprecated. |
boolean |
hasNext()
Tests if this iterator contains more elements. |
java.lang.Object |
next()
Returns the next element of this iterator if this iterator object has at least one more element to provide. |
void |
reset()
Resets the position of the iterator back to the first element. |
| Method Detail |
public boolean hasNext()
true if and only if this iterator object contains
at least one more element to provide; false otherwise.public java.lang.Object next()
public int elementCount()
public void reset()
next() call will return the first element.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||