|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.collections.functors.TransformerPredicate
public final class TransformerPredicate
Predicate implementation that returns the result of a transformer.
| Constructor Summary | |
|---|---|
TransformerPredicate(Transformer transformer)
Constructor that performs no validation. |
|
| Method Summary | |
|---|---|
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. |
| 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 decorate| Method Detail |
|---|
public static Predicate getInstance(Transformer transformer)
transformer - the transformer to decorate
java.lang.IllegalArgumentException - if the transformer is nullpublic boolean evaluate(java.lang.Object object)
evaluate in interface Predicateobject - 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 | |||||||||