E - the type of elements held in this generator.public class WhileGenerate<E> extends LoopGenerator<E>
Generator such that run(Procedure) continues
as long as a condition is true (test before).| Constructor and Description |
|---|
WhileGenerate(Predicate<? super E> test,
Generator<? extends E> wrapped)
Create a new WhileGenerate.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
int |
hashCode() |
void |
run(Procedure<? super E> proc)
Generators must implement this method.
|
getWrappedGenerator, isStopped, stopto, to, toCollectionCopyright © 2003–2014 The Apache Software Foundation. All rights reserved.