java.io.Serializable, Predicatepublic final class TransformerPredicate extends java.lang.Object implements Predicate, java.io.Serializable
| Constructor | Description |
|---|---|
TransformerPredicate(Transformer transformer) |
Constructor that performs no validation.
|
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
evaluate(java.lang.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 decoratejava.lang.IllegalArgumentException - if the transformer is nullpublic boolean evaluate(java.lang.Object object)
evaluate in interface Predicateobject - the input objectFunctorException - if the transformer returns an invalid typepublic Transformer getTransformer()
Copyright © 2001-2018 Apache Software Foundation. All Rights Reserved.