public final class LongPrimitiveArrayIterator extends Object implements LongPrimitiveIterator
| Constructor and Description |
|---|
LongPrimitiveArrayIterator(long[] array)
Creates an
LongPrimitiveArrayIterator over an entire array. |
public LongPrimitiveArrayIterator(long[] array)
Creates an LongPrimitiveArrayIterator over an entire array.
array - array to iterate overpublic long nextLong()
nextLong in interface LongPrimitiveIteratorlong in iterationpublic long peek()
peek in interface LongPrimitiveIteratorlong in iteration without advancing iterationpublic void remove()
remove in interface Iterator<Long>UnsupportedOperationExceptionpublic void skip(int n)
SkippingIteratorIterator. If there are less than n elements remaining,
this skips all remaining elements in the Iterator. This method has the same effect as calling
Iterator.next() n times, except that it will never throw NoSuchElementException.skip in interface SkippingIterator<Long>Copyright © 2008–2016 The Apache Software Foundation. All rights reserved.