Record Class NestingDiagnostic
java.lang.Object
java.lang.Record
dev.archunitjava.model.NestingDiagnostic
- All Implemented Interfaces:
Comparable<NestingDiagnostic>
public record NestingDiagnostic(NestingDiagnosticCode code, String evidence)
extends Record
implements Comparable<NestingDiagnostic>
-
Constructor Summary
ConstructorsConstructorDescriptionNestingDiagnostic(NestingDiagnosticCode code, String evidence) Creates an instance of aNestingDiagnosticrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncode()Returns the value of thecoderecord component.intcompareTo(NestingDiagnostic other) final booleanIndicates whether some other object is "equal to" this one.evidence()Returns the value of theevidencerecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
NestingDiagnostic
Creates an instance of aNestingDiagnosticrecord class.- Parameters:
code- the value for thecoderecord componentevidence- the value for theevidencerecord component
-
-
Method Details
-
compareTo
- Specified by:
compareToin interfaceComparable<NestingDiagnostic>
-
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
-
evidence
Returns the value of theevidencerecord component.- Returns:
- the value of the
evidencerecord component
-