Record Class ImportResolutionDiagnostic
java.lang.Object
java.lang.Record
dev.archunitjava.importer.ImportResolutionDiagnostic
- All Implemented Interfaces:
Comparable<ImportResolutionDiagnostic>
public record ImportResolutionDiagnostic(ImportResolutionDiagnosticCode code, String subject, Map<String,String> context)
extends Record
implements Comparable<ImportResolutionDiagnostic>
Stable packaging-resolution diagnostic.
-
Constructor Summary
ConstructorsConstructorDescriptionImportResolutionDiagnostic(ImportResolutionDiagnosticCode code, String subject, Map<String, String> context) Creates an instance of aImportResolutionDiagnosticrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncode()Returns the value of thecoderecord component.intcontext()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.subject()Returns the value of thesubjectrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ImportResolutionDiagnostic
public ImportResolutionDiagnostic(ImportResolutionDiagnosticCode code, String subject, Map<String, String> context) Creates an instance of aImportResolutionDiagnosticrecord class.- Parameters:
code- the value for thecoderecord componentsubject- the value for thesubjectrecord componentcontext- the value for thecontextrecord component
-
-
Method Details
-
compareTo
- Specified by:
compareToin interfaceComparable<ImportResolutionDiagnostic>
-
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
-
context
-