Interface PrimitiveIterator.OfLong
- All Superinterfaces:
Iterator<Long>, PrimitiveIterator<Long, LongConsumer>
- Enclosing interface:
PrimitiveIterator<T,T_CONS>
An iterator of
long values.-
Nested Class Summary
Nested classes/interfaces inherited from interface PrimitiveIterator
PrimitiveIterator.OfDouble, PrimitiveIterator.OfInt, PrimitiveIterator.OfLong -
Method Summary
Modifier and TypeMethodDescriptiondefault voidforEachRemaining(Consumer<? super Long> action) Hands each remaining element toaction, in order.default voidforEachRemaining(LongConsumer action) default Longnext()Returns the next object in the iteration, i.e.longnextLong()
-
Method Details
-
nextLong
long nextLong() -
forEachRemaining
- Specified by:
forEachRemainingin interfacePrimitiveIterator<Long, LongConsumer>
-
next
Description copied from interface:IteratorReturns 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
- #hasNext
-
forEachRemaining
-