class ViolationIdFilter implements ViolationFilter {

    @Override
    public boolean exclude(final String scriptName, final Violation violation) {
        if (scriptName == null) {
            throw new IllegalArgumentException("Script name cannot be null.");
        }

        if (violation == null) {
            throw new IllegalArgumentException("Violation cannot be null.");
        }

        return violationId.equals(violation.getViolationId());
    }

    public  ViolationIdFilter(final ViolationId violationId);

}