Record Class InputDiagnostic
java.lang.Object
java.lang.Record
dev.archunitjava.importer.InputDiagnostic
- All Implemented Interfaces:
Comparable<InputDiagnostic>
public record InputDiagnostic(InputDiagnosticCode code, String input, Map<String,String> context)
extends Record
implements Comparable<InputDiagnostic>
Structured enumeration diagnostic; renderers decide how it is presented.
-
Constructor Summary
ConstructorsConstructorDescriptionInputDiagnostic(InputDiagnosticCode code, String input, Map<String, String> context) Creates an instance of aInputDiagnosticrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncode()Returns the value of thecoderecord component.intcompareTo(InputDiagnostic 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.input()Returns the value of theinputrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
InputDiagnostic
Creates an instance of aInputDiagnosticrecord class.- Parameters:
code- the value for thecoderecord componentinput- the value for theinputrecord componentcontext- the value for thecontextrecord component
-
-
Method Details
-
compareTo
- Specified by:
compareToin interfaceComparable<InputDiagnostic>
-
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
-
input
Returns the value of theinputrecord component.- Returns:
- the value of the
inputrecord component
-
context
-