IntIteratorByteIterator, CodePointIteratorpublic interface BiDirIntIterator extends IntIterator
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
hasNext() |
Determine if there is another element in this sequence.
|
boolean |
hasPrevious() |
Determine if there is a previous 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.
|
int |
peekPrevious() |
Observe the previous element in the sequence without moving the iterator.
|
int |
previous() |
Get the previous element in the sequence.
|
boolean hasNext()
IntIteratorhasNext in interface IntIteratortrue if there is another element, false otherwiseint next() throws java.util.NoSuchElementException
IntIteratornext in interface IntIteratorjava.util.NoSuchElementException - if there are no more elementsint peekNext()
throws java.util.NoSuchElementException
IntIteratorpeekNext in interface IntIteratorjava.util.NoSuchElementException - if there are no more elementsboolean hasPrevious()
true if there is a previous element, false otherwiseint previous()
throws java.util.NoSuchElementException
java.util.NoSuchElementException - if there are no more elementsint peekPrevious()
throws java.util.NoSuchElementException
java.util.NoSuchElementException - if there are no more elementsCopyright © 2018 JBoss, a division of Red Hat, Inc.