Record Class ImportResolutionResult
java.lang.Object
java.lang.Record
dev.archunitjava.importer.ImportResolutionResult
public record ImportResolutionResult(ClassPathAssemblyResult assembly, TypeModelResult model, List<ResolvedImportedType> importedTypes, List<ExternalTypeStub> externalTypes, List<ImportResolutionDiagnostic> diagnostics)
extends Record
Complete static import result with selected, external, and diagnostic state separated.
-
Constructor Summary
ConstructorsConstructorDescriptionImportResolutionResult(ClassPathAssemblyResult assembly, TypeModelResult model, List<ResolvedImportedType> importedTypes, List<ExternalTypeStub> externalTypes, List<ImportResolutionDiagnostic> diagnostics) Creates an instance of aImportResolutionResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionassembly()Returns the value of theassemblyrecord component.Returns the value of thediagnosticsrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexternalTypesrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theimportedTypesrecord component.model()Returns the value of themodelrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ImportResolutionResult
public ImportResolutionResult(ClassPathAssemblyResult assembly, TypeModelResult model, List<ResolvedImportedType> importedTypes, List<ExternalTypeStub> externalTypes, List<ImportResolutionDiagnostic> diagnostics) Creates an instance of aImportResolutionResultrecord class.- Parameters:
assembly- the value for theassemblyrecord componentmodel- the value for themodelrecord componentimportedTypes- the value for theimportedTypesrecord componentexternalTypes- the value for theexternalTypesrecord componentdiagnostics- the value for thediagnosticsrecord component
-
-
Method Details
-
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). -
assembly
Returns the value of theassemblyrecord component.- Returns:
- the value of the
assemblyrecord component
-
model
Returns the value of themodelrecord component.- Returns:
- the value of the
modelrecord component
-
importedTypes
Returns the value of theimportedTypesrecord component.- Returns:
- the value of the
importedTypesrecord component
-
externalTypes
Returns the value of theexternalTypesrecord component.- Returns:
- the value of the
externalTypesrecord component
-
diagnostics
Returns the value of thediagnosticsrecord component.- Returns:
- the value of the
diagnosticsrecord component
-