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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
-
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: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:
Iterator.next()
-
-