Client and backend. This class is shared: the same code is compiled into your app and into your server, so everything on this page works in both.

public interface PrimitiveIterator.OfInt

ExtendsIterator<Integer>, PrimitiveIterator<Integer, IntConsumer>

An iterator of int values.

Methods

public abstract int nextInt()
public default void forEachRemaining(IntConsumer action)
public default Integer next()Returns the next object in the iteration, i.e. returns the element in front of the iterator and advances the iterator by one position.
public default void forEachRemaining(Consumer<? super Integer> action)Hands each remaining element to action, in order.

Inherited nested types

Inherited methods

Method details

nextInt

public abstract int nextInt()

forEachRemaining

public default void forEachRemaining(IntConsumer action)

next

public default Integer next()
Returns the next object in the iteration, i.e. returns the element in front of the iterator and advances the iterator by one position.

Returns

the next object.

Throws

NoSuchElementException
if there are no more elements.

See also

forEachRemaining

public default void forEachRemaining(Consumer<? super Integer> action)
Hands each remaining element to action, in order.