Predicate.
| Modifier and Type | Field and Description |
|---|---|
| private final Predicate | iPredicate
The predicate to call |
| private final Transformer | iTransformer
The transformer to call |
| private static final long | serialVersionUID
Serial version UID |
| Access | Constructor and Description |
|---|---|
| public | TransformedPredicate(final Transformer<? super T, ? extends T>
the transformer to use transformer, final Predicate<? super T> the predicate to decorate predicate)Constructor that performs no validation. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if decorated predicate returns truethe input object which will be transformed object)Implements org. |
| public Predicate | Returns: the predicate as the only element in an arrayImplements org. |
| public Transformer | |
| public static < the type that the predicate queries T> Predicate | Returns: the predicatethe transformer to call transformer, final Predicate<? super T> the predicate to call with the result of the transform predicate)Factory to create the predicate. |
| iPredicate | back to summary |
|---|---|
| private final Predicate<? super T> iPredicate The predicate to call | |
| iTransformer | back to summary |
|---|---|
| private final Transformer<? super T, ? extends T> iTransformer The transformer to call | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Serial version UID | |
| TransformedPredicate | back to summary |
|---|---|
| public TransformedPredicate(final Transformer<? super T, ? extends T> transformer, final Predicate<? super T> predicate) Constructor that performs no validation.
Use
| |
| evaluate | back to summary |
|---|---|
| public boolean evaluate(final T object) Implements org. Evaluates the predicate returning the result of the decorated predicate once the input has been transformed
| |
| getPredicates | back to summary |
|---|---|
| public Predicate Implements org. Gets the predicate being decorated.
| |
| getTransformer | back to summary |
|---|---|
| public Transformer Gets the transformer in use.
| |
| transformedPredicate | back to summary |
|---|---|
| public static <T> Predicate Factory to create the predicate.
| |