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