@Test(expected = NoSuchElementException.class) public void testNext() { LongPrimitiveIterator it = new LongPrimitiveArrayIterator(new long[] {3,2,1}); assertTrue(it.hasNext()); assertEquals(3, (long) it.next()); assertTrue(it.hasNext()); assertEquals(2, it.nextLong()); assertTrue(it.hasNext()); assertEquals(1, (long) it.next()); assertFalse(it.hasNext()); it.nextLong(); }
@Override public Long next() { return nextLong(); }
LongPrimitiveArrayIterator implements LongPrimitiveIterator { @Override public Long next() { return nextLong(); } }
LongPrimitiveArrayIterator implements LongPrimitiveIterator { @Override public Long next() { return nextLong(); } LongPrimitiveArrayIterator(long[] array); }
LongPrimitiveArrayIterator implements LongPrimitiveIterator { @Override public Long next() { return nextLong(); } LongPrimitiveArrayIterator(long[] array); @Override boolean hasNext(); @Override Long next(); @Override long nextLong(); @Override long peek(); @Override void remove(); @Override void skip(int n); @Override String toString(); }
LongPrimitiveArrayIterator implements LongPrimitiveIterator { @Override public Long next() { return nextLong(); } LongPrimitiveArrayIterator(long[] array); @Override boolean hasNext(); @Override Long next(); @Override long nextLong(); @Override long peek(); @Override void remove(); @Override void skip(int n); @Override String toString();  }