public class PredicateLinkedTransformer extends Object implements org.apache.commons.collections.Transformer, org.apache.commons.collections.Predicate
Constructor and Description |
---|
PredicateLinkedTransformer() |
Modifier and Type | Method and Description |
---|---|
boolean |
evaluate(Object object) |
org.apache.commons.collections.Predicate |
getPredicate()
Optional
Predicate . |
org.apache.commons.collections.Transformer |
getTransformer()
If the
predicate result is true, then pass input to this Transformer |
void |
setPredicate(org.apache.commons.collections.Predicate predicate)
Optional
Predicate . |
void |
setTransformer(org.apache.commons.collections.Transformer transformer)
If the
predicate result is true, then pass input to this Transformer |
Object |
transform(Object input) |
public boolean evaluate(Object object)
evaluate
in interface org.apache.commons.collections.Predicate
public Object transform(Object input)
transform
in interface org.apache.commons.collections.Transformer
public org.apache.commons.collections.Predicate getPredicate()
Predicate
. If result of which is true then only process transformer
public void setPredicate(org.apache.commons.collections.Predicate predicate)
Predicate
. If result of which is true then only process transformer
public org.apache.commons.collections.Transformer getTransformer()
predicate
result is true, then pass input to this Transformer
public void setTransformer(org.apache.commons.collections.Transformer transformer)
predicate
result is true, then pass input to this Transformer
Copyright © 2018. All rights reserved.