|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.collections.functors.TransformerPredicate
Predicate implementation that returns the result of a transformer.
Constructor Summary | |
TransformerPredicate(Transformer transformer)
Constructor that performs no validation. |
Method Summary | |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TransformerPredicate(Transformer transformer)
getInstance
if you want that.
transformer
- the transformer to decorateMethod Detail |
public static Predicate getInstance(Transformer transformer)
transformer
- the transformer to decorate
IllegalArgumentException
- if the transformer is nullpublic boolean evaluate(Object object)
evaluate
in interface Predicate
object
- the input object
FunctorException
- if the transformer returns an invalid typepublic Transformer getTransformer()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |