Package org.wildfly.common.iteration
Interface IntIterator
- All Known Subinterfaces:
BiDirIntIterator
- All Known Implementing Classes:
ByteIterator,CodePointIterator
public interface IntIterator
A primitive iterator, which can be used as the basis for string parsing, tokenizing, and other purposes.
-
Method Summary
-
Method Details
-
hasNext
boolean hasNext()Determine if there is another element in this sequence.- Returns:
trueif there is another element,falseotherwise
-
next
Get the next element in the sequence.- Returns:
- the next element
- Throws:
NoSuchElementException- if there are no more elements
-
peekNext
Observe the next element in the sequence without moving the iterator.- Returns:
- the next element
- Throws:
NoSuchElementException- if there are no more elements
-