Class WorkReportPredicate.TimesPredicate
- java.lang.Object
-
- com.redhat.parodos.workflows.work.WorkReportPredicate.TimesPredicate
-
- All Implemented Interfaces:
WorkReportPredicate
- Enclosing interface:
- WorkReportPredicate
public static class WorkReportPredicate.TimesPredicate extends Object implements WorkReportPredicate
A predicate that returns true after a given number of times.- Author:
- Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.redhat.parodos.workflows.work.WorkReportPredicate
WorkReportPredicate.TimesPredicate
-
-
Field Summary
-
Fields inherited from interface com.redhat.parodos.workflows.work.WorkReportPredicate
ALWAYS_FALSE, ALWAYS_TRUE, COMPLETED, FAILED
-
-
Constructor Summary
Constructors Constructor Description TimesPredicate(int times)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanapply(WorkReport workReport)Apply the predicate on the given work report.static WorkReportPredicate.TimesPredicatetimes(int times)
-
-
-
Method Detail
-
apply
public boolean apply(WorkReport workReport)
Description copied from interface:WorkReportPredicateApply the predicate on the given work report.- Specified by:
applyin interfaceWorkReportPredicate- Parameters:
workReport- on which the predicate should be applied- Returns:
- true if the predicate applies on the given report, false otherwise
-
times
public static WorkReportPredicate.TimesPredicate times(int times)
-
-