|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.commons.collections.functors.PredicateTransformer
Transformer implementation that calls a Predicate using the input object and then returns the input.
| Constructor Summary | |
PredicateTransformer(Predicate predicate)
Constructor that performs no validation. |
|
| Method Summary | |
static Transformer |
getInstance(Predicate predicate)
Factory method that performs validation. |
Predicate |
getPredicate()
Gets the predicate. |
Object |
transform(Object input)
Transforms the input to result by calling a predicate. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PredicateTransformer(Predicate predicate)
getInstance if you want that.
predicate - the predicate to call, not null| Method Detail |
public static Transformer getInstance(Predicate predicate)
predicate - the predicate to call, not null
predicate transformer
IllegalArgumentException - if the predicate is nullpublic Object transform(Object input)
transform in interface Transformerinput - the input object to transform
public Predicate getPredicate()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||