Package it.unimi.dsi.fastutil.longs
Class LongIterators.UnmodifiableIterator
java.lang.Object
it.unimi.dsi.fastutil.longs.LongIterators.UnmodifiableIterator
- All Implemented Interfaces:
LongIterator,Iterator<Long>,PrimitiveIterator<Long,,LongConsumer> PrimitiveIterator.OfLong
- Enclosing class:
- LongIterators
An unmodifiable wrapper class for iterators.
-
Nested Class Summary
Nested classes/interfaces inherited from interface java.util.PrimitiveIterator
PrimitiveIterator.OfDouble, PrimitiveIterator.OfInt, PrimitiveIterator.OfLong -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidforEachRemaining(Consumer<? super Long> action) Deprecated.voidforEachRemaining(LongConsumer action) booleanhasNext()longnextLong()Returns the next element as a primitive type.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface it.unimi.dsi.fastutil.longs.LongIterator
forEachRemaining, next, skip
-
Constructor Details
-
UnmodifiableIterator
-
-
Method Details
-
hasNext
public boolean hasNext() -
nextLong
public long nextLong()Description copied from interface:LongIteratorReturns the next element as a primitive type.- Specified by:
nextLongin interfaceLongIterator- Specified by:
nextLongin interfacePrimitiveIterator.OfLong- Returns:
- the next element in the iteration.
- See Also:
-
forEachRemaining
- Specified by:
forEachRemainingin interfacePrimitiveIterator<Long,LongConsumer> - Specified by:
forEachRemainingin interfacePrimitiveIterator.OfLong
-
forEachRemaining
Deprecated.Description copied from interface:LongIterator- Specified by:
forEachRemainingin interfaceIterator<Long>- Specified by:
forEachRemainingin interfaceLongIterator- Specified by:
forEachRemainingin interfacePrimitiveIterator.OfLong
-