public final class TransformedPredicate extends java.lang.Object implements Predicate, PredicateDecorator, java.io.Serializable
Predicate.| Modifier and Type | Field and Description |
|---|---|
private Predicate |
iPredicate
The predicate to call
|
private Transformer |
iTransformer
The transformer to call
|
private static long |
serialVersionUID
Serial version UID
|
| Constructor and Description |
|---|
TransformedPredicate(Transformer transformer,
Predicate predicate)
Constructor that performs no validation.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
evaluate(java.lang.Object object)
Evaluates the predicate returning the result of the decorated predicate
once the input has been transformed
|
static Predicate |
getInstance(Transformer transformer,
Predicate predicate)
Factory to create the predicate.
|
Predicate[] |
getPredicates()
Gets the predicate being decorated.
|
Transformer |
getTransformer()
Gets the transformer in use.
|
private static final long serialVersionUID
private final Transformer iTransformer
private final Predicate iPredicate
public TransformedPredicate(Transformer transformer, Predicate predicate)
getInstance if you want that.transformer - the transformer to usepredicate - the predicate to decoratepublic static Predicate getInstance(Transformer transformer, Predicate predicate)
transformer - the transformer to callpredicate - the predicate to call with the result of the transformjava.lang.IllegalArgumentException - if the transformer or the predicate is nullpublic boolean evaluate(java.lang.Object object)
public Predicate[] getPredicates()
getPredicates in interface PredicateDecoratorpublic Transformer getTransformer()