|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.ericaro.neoitertools.generators.TakeWhileGenerator<T>
public class TakeWhileGenerator<T>
a Generator that returns elements from the Generator as long as the predicate is true.
| Constructor Summary | |
|---|---|
TakeWhileGenerator(Lambda<? super T,java.lang.Boolean> predicate,
Generator<T> iterator)
Make an iterator that returns elements from the iterator as long as the predicate is true. |
|
| Method Summary | |
|---|---|
T |
next()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TakeWhileGenerator(Lambda<? super T,java.lang.Boolean> predicate,
Generator<T> iterator)
iterator - predicate - | Method Detail |
|---|
public T next()
next in interface Generator<T>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||