Interface CleanupAnalysisSubmissionCondition
-
- All Known Implementing Classes:
CleanupAnalysisSubmissionConditionAge
- 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 CleanupAnalysisSubmissionConditionDefines an interface for a condition on whether or not to clean up anAnalysisSubmission.
-
-
Field Summary
Fields Modifier and Type Field Description static CleanupAnalysisSubmissionConditionALWAYS_CLEANUPCondition which always cleans up analysis submissions.static CleanupAnalysisSubmissionConditionNEVER_CLEANUPCondition which never cleans up analysis submissions.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanshouldCleanupSubmission(AnalysisSubmission analysisSubmission)Whether or not the passedAnalysisSubmissionshould be cleaned up.
-
-
-
Field Detail
-
NEVER_CLEANUP
static final CleanupAnalysisSubmissionCondition NEVER_CLEANUP
Condition which never cleans up analysis submissions.
-
ALWAYS_CLEANUP
static final CleanupAnalysisSubmissionCondition ALWAYS_CLEANUP
Condition which always cleans up analysis submissions.
-
-
Method Detail
-
shouldCleanupSubmission
boolean shouldCleanupSubmission(AnalysisSubmission analysisSubmission)
Whether or not the passedAnalysisSubmissionshould be cleaned up.- Parameters:
analysisSubmission- The submission to check.- Returns:
- True if the submission should be cleaned up, false otherwise.
-
-