public interface IntIterator
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext()
Determine if there is another element in this sequence.
|
int |
next()
Get the next element in the sequence.
|
int |
peekNext()
Observe the next element in the sequence without moving the iterator.
|
boolean hasNext()
true if there is another element, false otherwiseint next() throws java.util.NoSuchElementException
java.util.NoSuchElementException - if there are no more elementsint peekNext()
throws java.util.NoSuchElementException
java.util.NoSuchElementException - if there are no more elementsCopyright © 2017 JBoss, a division of Red Hat, Inc.