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.OfLong
ExtendsIterator<Long>, PrimitiveIterator<Long, LongConsumer>
An iterator of
long values.Methods
public abstract long nextLong() | |
public default void forEachRemaining(LongConsumer action) | |
public default Long 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 Long> action) | Hands each remaining element to action, in order. |
Inherited nested types
Inherited methods
Method details
nextLong
public abstract long nextLong()forEachRemaining
public default void forEachRemaining(LongConsumer action)next
public default Long 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 Long> action)Hands each remaining element to
action, in order.