public static class LongIterators.UnmodifiableIterator extends AbstractLongIterator
Constructor and Description |
---|
UnmodifiableIterator(LongIterator i) |
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext() |
Long |
next()
Delegates to the corresponding type-specific method.
|
long |
nextLong()
Delegates to the corresponding generic method.
|
remove, skip
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
public UnmodifiableIterator(LongIterator i)
public boolean hasNext()
public long nextLong()
AbstractLongIterator
nextLong
in interface LongIterator
nextLong
in class AbstractLongIterator
Iterator.next()
public Long next()
AbstractLongIterator
next
in interface Iterator<Long>
next
in class AbstractLongIterator