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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
forEachRemaining
(Consumer<? super Long> action) Deprecated.void
forEachRemaining
(LongConsumer action) boolean
hasNext()
long
nextLong()
Returns the next element as a primitive type.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:LongIterator
Returns the next element as a primitive type.- Specified by:
nextLong
in interfaceLongIterator
- Specified by:
nextLong
in interfacePrimitiveIterator.OfLong
- Returns:
- the next element in the iteration.
- See Also:
-
forEachRemaining
- Specified by:
forEachRemaining
in interfacePrimitiveIterator<Long,
LongConsumer> - Specified by:
forEachRemaining
in interfacePrimitiveIterator.OfLong
-
forEachRemaining
Deprecated.Description copied from interface:LongIterator
- Specified by:
forEachRemaining
in interfaceIterator<Long>
- Specified by:
forEachRemaining
in interfaceLongIterator
- Specified by:
forEachRemaining
in interfacePrimitiveIterator.OfLong
-