Interface WorkReportPredicate
-
- All Known Implementing Classes:
WorkReportPredicate.TimesPredicate
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface WorkReportPredicate
A predicate interface on work report.- Author:
- Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classWorkReportPredicate.TimesPredicateA predicate that returns true after a given number of times.
-
Field Summary
Fields Modifier and Type Field Description static WorkReportPredicateALWAYS_FALSEstatic WorkReportPredicateALWAYS_TRUEstatic WorkReportPredicateCOMPLETEDstatic WorkReportPredicateFAILED
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanapply(WorkReport workReport)Apply the predicate on the given work report.
-
-
-
Field Detail
-
ALWAYS_TRUE
static final WorkReportPredicate ALWAYS_TRUE
-
ALWAYS_FALSE
static final WorkReportPredicate ALWAYS_FALSE
-
COMPLETED
static final WorkReportPredicate COMPLETED
-
FAILED
static final WorkReportPredicate FAILED
-
-
Method Detail
-
apply
boolean apply(WorkReport workReport)
Apply the predicate on the given work report.- Parameters:
workReport- on which the predicate should be applied- Returns:
- true if the predicate applies on the given report, false otherwise
-
-