Package it.unimi.dsi.fastutil.ints
Class IntIterators.UnmodifiableIterator
java.lang.Object
it.unimi.dsi.fastutil.ints.IntIterators.UnmodifiableIterator
- All Implemented Interfaces:
IntIterator
,Iterator<Integer>
,PrimitiveIterator<Integer,
,IntConsumer> PrimitiveIterator.OfInt
- Enclosing class:
IntIterators
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 Integer> action) Deprecated.void
forEachRemaining
(IntConsumer action) boolean
hasNext()
int
nextInt()
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.ints.IntIterator
forEachRemaining, next, skip
-
Constructor Details
-
UnmodifiableIterator
-
-
Method Details
-
hasNext
public boolean hasNext() -
nextInt
public int nextInt()Description copied from interface:IntIterator
Returns the next element as a primitive type.- Specified by:
nextInt
in interfaceIntIterator
- Specified by:
nextInt
in interfacePrimitiveIterator.OfInt
- Returns:
- the next element in the iteration.
- See Also:
-
forEachRemaining
- Specified by:
forEachRemaining
in interfacePrimitiveIterator<Integer,
IntConsumer> - Specified by:
forEachRemaining
in interfacePrimitiveIterator.OfInt
-
forEachRemaining
Deprecated.Description copied from interface:IntIterator
- Specified by:
forEachRemaining
in interfaceIntIterator
- Specified by:
forEachRemaining
in interfaceIterator<Integer>
- Specified by:
forEachRemaining
in interfacePrimitiveIterator.OfInt
-