Record Class GenericSignatureDiagnostic
java.lang.Object
java.lang.Record
dev.archunitjava.model.GenericSignatureDiagnostic
- All Implemented Interfaces:
Comparable<GenericSignatureDiagnostic>
public record GenericSignatureDiagnostic(String signature, int errorOffset, String reason)
extends Record
implements Comparable<GenericSignatureDiagnostic>
Non-fatal malformed generic metadata retained alongside its erased fallback.
-
Constructor Summary
ConstructorsConstructorDescriptionGenericSignatureDiagnostic(String signature, int errorOffset, String reason) Creates an instance of aGenericSignatureDiagnosticrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintfinal booleanIndicates whether some other object is "equal to" this one.intReturns the value of theerrorOffsetrecord component.final inthashCode()Returns a hash code value for this object.reason()Returns the value of thereasonrecord component.Returns the value of thesignaturerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GenericSignatureDiagnostic
Creates an instance of aGenericSignatureDiagnosticrecord class.- Parameters:
signature- the value for thesignaturerecord componenterrorOffset- the value for theerrorOffsetrecord componentreason- the value for thereasonrecord component
-
-
Method Details
-
compareTo
- Specified by:
compareToin interfaceComparable<GenericSignatureDiagnostic>
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
signature
Returns the value of thesignaturerecord component.- Returns:
- the value of the
signaturerecord component
-
errorOffset
public int errorOffset()Returns the value of theerrorOffsetrecord component.- Returns:
- the value of the
errorOffsetrecord component
-
reason
Returns the value of thereasonrecord component.- Returns:
- the value of the
reasonrecord component
-