E - the type of elements held in this generator.public class FilteredGenerator<E> extends BaseGenerator<E>
| Constructor and Description |
|---|
FilteredGenerator(Generator<? extends E> wrapped,
Predicate<? super E> pred)
Create a new FilteredGenerator.
|
| 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(Procedure<? super E> proc)
Generators must implement this method.
|
to, to, toCollectionpublic FilteredGenerator(Generator<? extends E> wrapped, Predicate<? super E> pred)
wrapped - Generator to wrappred - filtering PredicateCopyright © 2003–2014 The Apache Software Foundation. All rights reserved.