Interface Filter
- All Known Implementing Classes:
FilterSet,SeverityMatchFilter,SuppressFilterElement,SuppressionFilter,SuppressionSingleFilter,SuppressWarningsFilter,SuppressWithNearbyTextFilter,SuppressWithPlainTextCommentFilter
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
An interface for filtering AuditEvents.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanaccept(AuditEvent event) Determines whether or not a filtered AuditEvent is accepted.
-
Method Details
-
accept
Determines whether or not a filtered AuditEvent is accepted. An accepted event is kept in the final report as a violation; a rejected event is filtered out. In other words, returningtruemakes the violation appear in the report, while returningfalsesuppresses it.- Parameters:
event- the AuditEvent to filter.- Returns:
- true if the event is accepted and its violation should appear in the final report; false to suppress the event.
-