AccessControlPolicyIteratorImpl implements AccessControlPolicyIterator { @Override public void skip(long amount) { index += amount; } AccessControlPolicyIteratorImpl(AccessControlPolicy... policy); @Override AccessControlPolicy nextAccessControlPolicy(); @Override void skip(long amount); @Override long getSize(); @Override long getPosition(); @Override boolean hasNext(); @Override Object next(); @Override void remove(); final static AccessControlPolicyIteratorImpl EMPTY; }
@Test public void testSkip() { assertTrue(it.hasNext()); it.skip(1); assertTrue(it.hasNext()); it.skip(1); assertFalse(it.hasNext()); }