Package it.unimi.dsi.fastutil.longs
Class LongIterators.UnmodifiableIterator
java.lang.Object
it.unimi.dsi.fastutil.longs.LongIterators.UnmodifiableIterator
- All Implemented Interfaces:
it.unimi.dsi.fastutil.longs.LongIterator,Iterator<Long>,PrimitiveIterator<Long,,LongConsumer> PrimitiveIterator.OfLong
- Enclosing class:
LongIterators
public static class LongIterators.UnmodifiableIterator
extends Object
implements it.unimi.dsi.fastutil.longs.LongIterator
An unmodifiable wrapper class for iterators.
-
Nested Class Summary
Nested classes/interfaces inherited from interface java.util.PrimitiveIterator
PrimitiveIterator.OfDouble, PrimitiveIterator.OfInt, PrimitiveIterator.OfLong -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidforEachRemaining(Consumer<? super Long> action) Deprecated.voidforEachRemaining(LongConsumer action) booleanhasNext()longnextLong()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface it.unimi.dsi.fastutil.longs.LongIterator
forEachRemaining, next, skip
-
Field Details
-
i
protected final it.unimi.dsi.fastutil.longs.LongIterator i
-
-
Constructor Details
-
UnmodifiableIterator
public UnmodifiableIterator(it.unimi.dsi.fastutil.longs.LongIterator i)
-
-
Method Details
-
hasNext
public boolean hasNext() -
nextLong
public long nextLong()- Specified by:
nextLongin interfaceit.unimi.dsi.fastutil.longs.LongIterator- Specified by:
nextLongin interfacePrimitiveIterator.OfLong
-
forEachRemaining
- Specified by:
forEachRemainingin interfacePrimitiveIterator<Long,LongConsumer> - Specified by:
forEachRemainingin interfacePrimitiveIterator.OfLong
-
forEachRemaining
Deprecated.- Specified by:
forEachRemainingin interfaceIterator<Long>- Specified by:
forEachRemainingin interfaceit.unimi.dsi.fastutil.longs.LongIterator- Specified by:
forEachRemainingin interfacePrimitiveIterator.OfLong
-