E - the type of the elementspublic final class StepIterable<E>
extends java.lang.Object
implements java.lang.Iterable<E>
StepIterable iterates elements by skipping n elements each time.| Constructor and Description |
|---|
StepIterable(java.lang.Iterable<? extends E> iter,
int step)
Creates a
StepIterable. |
public StepIterable(java.lang.Iterable<? extends E> iter, int step)
StepIterable.iter - an Iterablestep - number of elements to skipjava.lang.NullPointerException - if iter is nulljava.lang.IllegalArgumentException - if step is less than or equal to 0