Package org.jboss.windup.rules.general
Class IterableFilter
- java.lang.Object
-
- org.ocpsoft.rewrite.config.DefaultConditionBuilder
-
- org.jboss.windup.config.condition.GraphCondition
-
- org.jboss.windup.rules.general.IterableFilter
-
- All Implemented Interfaces:
org.ocpsoft.rewrite.config.Condition
,org.ocpsoft.rewrite.config.ConditionBuilder
public class IterableFilter extends GraphCondition
AGraphCondition
that returns true/false based on the iterable returned from the wrapped condition. It is useful to check if the result contains the specified number of elements etc.- Author:
- Matej Briskar
-
-
Constructor Summary
Constructors Constructor Description IterableFilter(int size)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
evaluate(GraphRewrite event, org.ocpsoft.rewrite.context.EvaluationContext context)
static IterableFilter
withSize(int size)
IterableFilter
withWrappedCondition(GraphCondition condition)
-
Methods inherited from class org.jboss.windup.config.condition.GraphCondition
evaluate, getInputVariablesName, getOutputVariablesName, setInputVariablesName, setOutputVariablesName, setResults
-
-
-
-
Method Detail
-
withSize
public static IterableFilter withSize(int size)
-
withWrappedCondition
public IterableFilter withWrappedCondition(GraphCondition condition)
-
evaluate
public boolean evaluate(GraphRewrite event, org.ocpsoft.rewrite.context.EvaluationContext context)
- Specified by:
evaluate
in classGraphCondition
-
-