Class Violation
java.lang.Object
org.springframework.modulith.core.Violation
An individual architectural violation.
- Since:
- 1.3.1
- Author:
- Oliver Drotbohm
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the violation message.int
hashCode()
boolean
hasMessageContaining
(String candidate) Returns whether theViolation
's message contains the given candidate.toString()
-
Field Details
-
message
-
-
Constructor Details
-
Violation
Violation(String message)
-
-
Method Details
-
getMessage
Returns the violation message.- Returns:
- the message
-
hasMessageContaining
Returns whether theViolation
's message contains the given candidate.- Parameters:
candidate
- must not be null or empty.
-
toString
-
equals
-
hashCode
public int hashCode()
-