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
public static class LongIterators.UnmodifiableIterator extends Object implements 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
-
-
Constructor Summary
Constructors Constructor Description UnmodifiableIterator(LongIterator i)
-
Method Summary
-
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
-
Methods inherited from interface java.util.PrimitiveIterator.OfLong
forEachRemaining
-
-
-
-
Constructor Detail
-
UnmodifiableIterator
public UnmodifiableIterator(LongIterator i)
-
-
Method Detail
-
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:
Iterator.next()
-
-