@Test( expected = IllegalArgumentException.class ) public void shouldNotAllowPropertyIteratorNegativeSkip() throws Exception { new JcrPropertyIterator(properties).skip(-1); }
@Override public void skip( long count ) { CheckArg.isNonNegative(count, "count"); while (--count >= 0) { nextProperty(); } }
JcrPropertyIterator implements PropertyIterator { @Override public void skip( long count ) { CheckArg.isNonNegative(count, "count"); while (--count >= 0) { nextProperty(); } } }
JcrPropertyIterator implements PropertyIterator { @Override public void skip( long count ) { CheckArg.isNonNegative(count, "count"); while (--count >= 0) { nextProperty(); } } JcrPropertyIterator( Collection<? extends Property> properties ); }
JcrPropertyIterator implements PropertyIterator { @Override public void skip( long count ) { CheckArg.isNonNegative(count, "count"); while (--count >= 0) { nextProperty(); } } JcrPropertyIterator( Collection<? extends Property> properties ); @Override long getPosition(); @Override long getSize(); @Override boolean hasNext(); @Override Object next(); @Override Property nextProperty(); @Override void remove(); @Override void skip( long count ); }
JcrPropertyIterator implements PropertyIterator { @Override public void skip( long count ) { CheckArg.isNonNegative(count, "count"); while (--count >= 0) { nextProperty(); } } JcrPropertyIterator( Collection<? extends Property> properties ); @Override long getPosition(); @Override long getSize(); @Override boolean hasNext(); @Override Object next(); @Override Property nextProperty(); @Override void remove(); @Override void skip( long count );  }