E - the type of the elementspublic final class DropIterator<E>
extends java.lang.Object
implements java.util.Iterator<E>
DropIterator drops first n elements before iterating elements.| Constructor and Description |
|---|
DropIterator(java.util.Iterator<? extends E> iter,
int drop)
Creates a
DropIterator. |
public DropIterator(java.util.Iterator<? extends E> iter, int drop)
DropIterator.iter - an Iteratordrop - number of elements to dropjava.lang.NullPointerException - if iter is nulljava.lang.IllegalArgumentException - if step is less than or equal to 0