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