IntIterator, java.util.Iterator<java.lang.Integer>, java.util.PrimitiveIterator<java.lang.Integer,java.util.function.IntConsumer>, java.util.PrimitiveIterator.OfIntpublic static class IntIterators.UnmodifiableIterator extends java.lang.Object implements IntIterator
| Constructor | Description |
|---|---|
UnmodifiableIterator(IntIterator i) |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
hasNext() |
|
int |
nextInt() |
Returns the next element as a primitive type.
|
forEachRemaining, next, skippublic UnmodifiableIterator(IntIterator i)
public boolean hasNext()
hasNext in interface java.util.Iterator<java.lang.Integer>public int nextInt()
IntIteratornextInt in interface IntIteratornextInt in interface java.util.PrimitiveIterator.OfIntIterator.next()