Record Class TypeModelDiagnostic
java.lang.Object
java.lang.Record
dev.archunitjava.model.TypeModelDiagnostic
- All Implemented Interfaces:
Comparable<TypeModelDiagnostic>
public record TypeModelDiagnostic(TypeModelDiagnosticCode code, String resourceName, ClassFileOrigin origin, Map<String,String> context)
extends Record
implements Comparable<TypeModelDiagnostic>
Structured type-model adaptation diagnostic.
-
Constructor Summary
ConstructorsConstructorDescriptionTypeModelDiagnostic(TypeModelDiagnosticCode code, String resourceName, ClassFileOrigin origin, Map<String, String> context) Creates an instance of aTypeModelDiagnosticrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncode()Returns the value of thecoderecord component.intcompareTo(TypeModelDiagnostic 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.origin()Returns the value of theoriginrecord component.Returns the value of theresourceNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TypeModelDiagnostic
public TypeModelDiagnostic(TypeModelDiagnosticCode code, String resourceName, ClassFileOrigin origin, Map<String, String> context) Creates an instance of aTypeModelDiagnosticrecord class.- Parameters:
code- the value for thecoderecord componentresourceName- the value for theresourceNamerecord componentorigin- the value for theoriginrecord componentcontext- the value for thecontextrecord component
-
-
Method Details
-
compareTo
- Specified by:
compareToin interfaceComparable<TypeModelDiagnostic>
-
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
-
resourceName
Returns the value of theresourceNamerecord component.- Returns:
- the value of the
resourceNamerecord component
-
origin
Returns the value of theoriginrecord component.- Returns:
- the value of the
originrecord component
-
context
-