public final class TransformerPredicate extends java.lang.Object implements Predicate, java.io.Serializable
Constructor and Description |
---|
TransformerPredicate(Transformer transformer)
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 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 Predicate
object
- the input objectFunctorException
- if the transformer returns an invalid typepublic Transformer getTransformer()
Copyright © 2010 - 2020 Adobe. All Rights Reserved