Top Description Methods
org.wildfly.common.iteration

public Interface BiDirIntIterator

extends IntIterator
Known Direct Implementers
org.wildfly.common.iteration.ByteIterator, org.wildfly.common.iteration.CodePointIterator
Imports
java.util.NoSuchElementException

A bi-directional primitive iterator.

Method Summary

Modifier and TypeMethod and Description
public boolean
hasNext()

Redeclares org.wildfly.common.iteration.IntIterator.hasNext.

Determine if there is another element in this sequence.
public boolean

Returns:

true if there is a previous element, false otherwise
hasPrevious
()

Determine if there is a previous element in this sequence.

public int
next()

Redeclares org.wildfly.common.iteration.IntIterator.next.

Get the next element in the sequence.
public int
peekNext()

Redeclares org.wildfly.common.iteration.IntIterator.peekNext.

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

Returns:

the previous element
peekPrevious
()

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

public int

Returns:

the previous element
previous
()

Get the previous element in the sequence.

Method Detail

hasNextback to summary
public boolean hasNext()

Redeclares org.wildfly.common.iteration.IntIterator.hasNext.

Doc from org.wildfly.common.iteration.IntIterator.hasNext.

Determine if there is another element in this sequence.

Returns:boolean

true if there is another element, false otherwise

hasPreviousback to summary
public boolean hasPrevious()

Determine if there is a previous element in this sequence.

Returns:boolean

true if there is a previous element, false otherwise

nextback to summary
public int next() throws NoSuchElementException

Redeclares org.wildfly.common.iteration.IntIterator.next.

Doc from org.wildfly.common.iteration.IntIterator.next.

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

Redeclares org.wildfly.common.iteration.IntIterator.peekNext.

Doc from org.wildfly.common.iteration.IntIterator.peekNext.

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

Returns:int

the next element

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

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

Returns:int

the previous element

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

Get the previous element in the sequence.

Returns:int

the previous element

Exceptions
NoSuchElementException:
if there are no more elements