public static class IntIterators.UnmodifiableIterator extends java.lang.Object implements IntIterator
Constructor and Description |
---|
UnmodifiableIterator(IntIterator i) |
Modifier and Type | Method and Description |
---|---|
void |
forEachRemaining(java.util.function.Consumer<? super java.lang.Integer> action)
Deprecated.
|
void |
forEachRemaining(java.util.function.IntConsumer action) |
boolean |
hasNext() |
int |
nextInt()
Returns the next element as a primitive type.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining, next, skip
public UnmodifiableIterator(IntIterator i)
public boolean hasNext()
hasNext
in interface java.util.Iterator<java.lang.Integer>
public int nextInt()
IntIterator
nextInt
in interface IntIterator
nextInt
in interface java.util.PrimitiveIterator.OfInt
Iterator.next()
public void forEachRemaining(java.util.function.IntConsumer action)
forEachRemaining
in interface java.util.PrimitiveIterator<java.lang.Integer,java.util.function.IntConsumer>
forEachRemaining
in interface java.util.PrimitiveIterator.OfInt
@Deprecated public void forEachRemaining(java.util.function.Consumer<? super java.lang.Integer> action)
IntIterator
forEachRemaining
in interface IntIterator
forEachRemaining
in interface java.util.Iterator<java.lang.Integer>
forEachRemaining
in interface java.util.PrimitiveIterator.OfInt