Add equals method to Violation.