Record Class DiscoveryDiagnostic
java.lang.Object
java.lang.Record
dev.archunitjava.importer.DiscoveryDiagnostic
- All Implemented Interfaces:
Comparable<DiscoveryDiagnostic>
public record DiscoveryDiagnostic(DiscoveryDiagnosticCode code, Path path, Map<String,String> context)
extends Record
implements Comparable<DiscoveryDiagnostic>
Structured project-discovery information, independent from human rendering.
-
Constructor Summary
ConstructorsConstructorDescriptionDiscoveryDiagnostic(DiscoveryDiagnosticCode code, Path path, Map<String, String> context) Creates an instance of aDiscoveryDiagnosticrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncode()Returns the value of thecoderecord component.intcompareTo(DiscoveryDiagnostic 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.path()Returns the value of thepathrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DiscoveryDiagnostic
Creates an instance of aDiscoveryDiagnosticrecord class.- Parameters:
code- the value for thecoderecord componentpath- the value for thepathrecord componentcontext- the value for thecontextrecord component
-
-
Method Details
-
compareTo
- Specified by:
compareToin interfaceComparable<DiscoveryDiagnostic>
-
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
-
path
Returns the value of thepathrecord component.- Returns:
- the value of the
pathrecord component
-
context
-