Record Class Diagnostic
java.lang.Object
java.lang.Record
dev.archunitjava.result.Diagnostic
- All Implemented Interfaces:
Comparable<Diagnostic>
public record Diagnostic(String code, Severity severity, Map<String,String> context)
extends Record
implements Comparable<Diagnostic>
Structured analysis or execution information that renderers may later turn into prose.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncode()Returns the value of thecoderecord component.intcompareTo(Diagnostic other) context()Returns the value of thecontextrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.severity()Returns the value of theseverityrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Diagnostic
-
-
Method Details
-
compareTo
- Specified by:
compareToin interfaceComparable<Diagnostic>
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
code
Returns the value of thecoderecord component.- Returns:
- the value of the
coderecord component
-
severity
Returns the value of theseverityrecord component.- Returns:
- the value of the
severityrecord component
-
context
-