E - the type of the elementspublic final class TakeWhileIterator<E>
extends java.lang.Object
implements java.util.Iterator<E>
TakeWhileIterator iterates over the elements until the returned value
by the block is false.| Constructor and Description |
|---|
TakeWhileIterator(java.util.Iterator<? extends E> iter,
BooleanBlock<? super E> block)
Creates a
TakeWhileIterator. |
public TakeWhileIterator(java.util.Iterator<? extends E> iter, BooleanBlock<? super E> block)
TakeWhileIterator.iter - an Iterableblock - to check elementsjava.lang.NullPointerException - if iter or block is null