Record Class SelectionDiagnostic
java.lang.Object
java.lang.Record
dev.archunitjava.selector.SelectionDiagnostic
- All Implemented Interfaces:
Comparable<SelectionDiagnostic>
public record SelectionDiagnostic(SelectionDiagnosticCode code, String subject, String detail)
extends Record
implements Comparable<SelectionDiagnostic>
Deterministic evidence that selection encountered an incomplete imported model.
-
Constructor Summary
ConstructorsConstructorDescriptionSelectionDiagnostic(SelectionDiagnosticCode code, String subject, String detail) Creates an instance of aSelectionDiagnosticrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncode()Returns the value of thecoderecord component.intcompareTo(SelectionDiagnostic other) detail()Returns the value of thedetailrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.subject()Returns the value of thesubjectrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SelectionDiagnostic
Creates an instance of aSelectionDiagnosticrecord class.- Parameters:
code- the value for thecoderecord componentsubject- the value for thesubjectrecord componentdetail- the value for thedetailrecord component
-
-
Method Details
-
compareTo
- Specified by:
compareToin interfaceComparable<SelectionDiagnostic>
-
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
-
subject
Returns the value of thesubjectrecord component.- Returns:
- the value of the
subjectrecord component
-
detail
Returns the value of thedetailrecord component.- Returns:
- the value of the
detailrecord component
-