E - the type of elements held in this generator.public abstract class LoopGenerator<E> extends BaseGenerator<E>
| Constructor and Description |
|---|
LoopGenerator()
Create a new generator.
|
LoopGenerator(Generator<? extends E> generator)
A generator can wrap another generator.
|
| Modifier and Type | Method and Description |
|---|---|
protected Generator<? extends E> |
getWrappedGenerator()
Get the generator that is being wrapped.
|
boolean |
isStopped()
Check if the generator is stopped.
|
void |
stop()
Stop the generator.
|
to, to, toCollectionpublic LoopGenerator()
public LoopGenerator(Generator<? extends E> generator)
stop() method to stop the wrapped generator as well.generator - Generator to wrapprotected Generator<? extends E> getWrappedGenerator()
public void stop()
public boolean isStopped()
true if the generator is stopped, false
otherwiseCopyright © 2003–2014 The Apache Software Foundation. All rights reserved.