Top Description Methods
org.wildfly.common.iteration

public Interface IntIterator

Known Direct Subinterfaces
org.wildfly.common.iteration.BiDirIntIterator
Imports
java.util.NoSuchElementException

A primitive iterator, which can be used as the basis for string parsing, tokenizing, and other purposes.

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true if there is another element, false otherwise
hasNext
()

Determine if there is another element in this sequence.

public int

Returns:

the next element
next
()

Get the next element in the sequence.

public int

Returns:

the next element
peekNext
()

Observe the next element in the sequence without moving the iterator.

Method Detail

hasNextback to summary
public boolean hasNext()

Determine if there is another element in this sequence.

Returns:boolean

true if there is another element, false otherwise

nextback to summary
public int next() throws NoSuchElementException

Get the next element in the sequence.

Returns:int

the next element

Exceptions
NoSuchElementException:
if there are no more elements
peekNextback to summary
public int peekNext() throws NoSuchElementException

Observe the next element in the sequence without moving the iterator.

Returns:int

the next element

Exceptions
NoSuchElementException:
if there are no more elements