E - the type of elements held in this generator.public class GenerateUntil<E> extends BaseGenerator<E>
Generator such that run(UnaryProcedure) terminates once
a condition has been satisfied (test after).| Constructor and Description |
|---|
GenerateUntil(Generator<? extends E> wrapped,
UnaryPredicate<? super E> test)
Create a new GenerateUntil.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
protected Generator<? extends E> |
getWrappedGenerator()
Get the generator that is being wrapped.
|
int |
hashCode() |
void |
run(UnaryProcedure<? super E> proc)
Generators must implement this method.
|
isStopped, stop, to, to, toCollectionpublic GenerateUntil(Generator<? extends E> wrapped, UnaryPredicate<? super E> test)
wrapped - Generatortest - UnaryPredicatepublic void run(UnaryProcedure<? super E> proc)
proc - UnaryProcedure to runprotected Generator<? extends E> getWrappedGenerator()
getWrappedGenerator in class BaseGenerator<E>Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.