Package it.unimi.dsi.fastutil.ints
Class IntIterators.UnmodifiableIterator
- java.lang.Object
-
- it.unimi.dsi.fastutil.ints.IntIterators.UnmodifiableIterator
-
- All Implemented Interfaces:
IntIterator
,java.util.Iterator<java.lang.Integer>
,java.util.PrimitiveIterator<java.lang.Integer,java.util.function.IntConsumer>
,java.util.PrimitiveIterator.OfInt
- Enclosing class:
- IntIterators
public static class IntIterators.UnmodifiableIterator extends java.lang.Object implements IntIterator
An unmodifiable wrapper class for iterators.
-
-
Constructor Summary
Constructors Constructor Description UnmodifiableIterator(IntIterator i)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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 Detail
-
UnmodifiableIterator
public UnmodifiableIterator(IntIterator i)
-
-
Method Detail
-
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interfacejava.util.Iterator<java.lang.Integer>
-
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 interfacejava.util.PrimitiveIterator.OfInt
- Returns:
- the next element in the iteration.
- See Also:
Iterator.next()
-
-