public final class TransformerPredicate extends Object implements Predicate, Serializable
| Constructor and Description |
|---|
TransformerPredicate(Transformer transformer)
Constructor that performs no validation.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
evaluate(Object object)
Evaluates the predicate returning the result of the decorated transformer.
|
static Predicate |
getInstance(Transformer transformer)
Factory to create the predicate.
|
Transformer |
getTransformer()
Gets the transformer.
|
public TransformerPredicate(Transformer transformer)
getInstance if you want that.transformer - the transformer to decoratepublic static Predicate getInstance(Transformer transformer)
transformer - the transformer to decorateIllegalArgumentException - if the transformer is nullpublic boolean evaluate(Object object)
evaluate in interface Predicateobject - the input objectFunctorException - if the transformer returns an invalid typepublic Transformer getTransformer()
Copyright © 2001–2015 The Apache Software Foundation. All rights reserved.