| Modifier and Type | Field and Description |
|---|---|
| private final Predicate | iPredicate
The closure to wrap |
| private static final long | serialVersionUID
Serial version UID |
| Access | Constructor and Description |
|---|---|
| public | PredicateTransformer(final Predicate<? super T>
the predicate to call, not null predicate)Constructor that performs no validation. |
| Modifier and Type | Method and Description |
|---|---|
| public Predicate | |
| public static < the input type T> Transformer | Returns: thepredicate transformerthe predicate to call, not null predicate)Factory method that performs validation. |
| public Boolean | Returns: the transformed resultthe input object to transform input)Implements org. |
| iPredicate | back to summary |
|---|---|
| private final Predicate<? super T> iPredicate The closure to wrap | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Serial version UID | |
| PredicateTransformer | back to summary |
|---|---|
| public PredicateTransformer(final Predicate<? super T> predicate) Constructor that performs no validation.
Use
| |
| getPredicate | back to summary |
|---|---|
| public Predicate Gets the predicate.
| |
| predicateTransformer | back to summary |
|---|---|
| public static <T> Transformer Factory method that performs validation.
| |
| transform | back to summary |
|---|---|
| public Boolean transform(final T input) Implements org. Transforms the input to result by calling a predicate. | |