E
- the type of elements held in this generator.public class GenerateWhile<E> extends LoopGenerator<E>
Generator
such that run(Procedure)
continues
as long as a condition is true (test after).Constructor and Description |
---|
GenerateWhile(Generator<? extends E> wrapped,
Predicate<? super E> test)
Create a new GenerateWhile.
|
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, stop
to, to, toCollection
Copyright © 2003–2014 The Apache Software Foundation. All rights reserved.