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 -
Method Summary
Modifier and TypeMethodDescriptionbooleanapply(WorkReport workReport) Apply the predicate on the given work report.times(int times)
-
Constructor Details
-
TimesPredicate
public TimesPredicate(int times)
-
-
Method Details
-
apply
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
-