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
public static class IntIterators.UnmodifiableIterator extends Object implements IntIterator
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(IntIterator i) -
Method Summary
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface it.unimi.dsi.fastutil.ints.IntIterator
forEachRemaining, next, skip
-
Constructor Details
-
Method Details
-
hasNext
public boolean hasNext() -
nextInt
public int nextInt()Description copied from interface:IntIteratorReturns the next element as a primitive type.- Specified by:
nextIntin interfaceIntIterator- Specified by:
nextIntin interfacePrimitiveIterator.OfInt- Returns:
- the next element in the iteration.
- See Also:
Iterator.next()
-