Record Class TypeModelResult
java.lang.Object
java.lang.Record
dev.archunitjava.model.TypeModelResult
public record TypeModelResult(List<JavaType> types, List<JavaModule> modules, List<ClassFileDiagnostic> classFileDiagnostics, List<TypeModelDiagnostic> diagnostics)
extends Record
Immutable type-model output, retaining reader and adaptation diagnostics separately.
-
Constructor Summary
ConstructorsConstructorDescriptionTypeModelResult(List<JavaType> types, List<ClassFileDiagnostic> classFileDiagnostics, List<TypeModelDiagnostic> diagnostics) TypeModelResult(List<JavaType> types, List<JavaModule> modules, List<ClassFileDiagnostic> classFileDiagnostics, List<TypeModelDiagnostic> diagnostics) Creates an instance of aTypeModelResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theclassFileDiagnosticsrecord component.Returns the value of thediagnosticsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.modules()Returns the value of themodulesrecord component.packages()final StringtoString()Returns a string representation of this record class.types()Returns the value of thetypesrecord component.
-
Constructor Details
-
TypeModelResult
public TypeModelResult(List<JavaType> types, List<JavaModule> modules, List<ClassFileDiagnostic> classFileDiagnostics, List<TypeModelDiagnostic> diagnostics) Creates an instance of aTypeModelResultrecord class.- Parameters:
types- the value for thetypesrecord componentmodules- the value for themodulesrecord componentclassFileDiagnostics- the value for theclassFileDiagnosticsrecord componentdiagnostics- the value for thediagnosticsrecord component
-
TypeModelResult
public TypeModelResult(List<JavaType> types, List<ClassFileDiagnostic> classFileDiagnostics, List<TypeModelDiagnostic> diagnostics)
-
-
Method Details
-
packages
-
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). -
types
-
modules
Returns the value of themodulesrecord component.- Returns:
- the value of the
modulesrecord component
-
classFileDiagnostics
Returns the value of theclassFileDiagnosticsrecord component.- Returns:
- the value of the
classFileDiagnosticsrecord component
-
diagnostics
Returns the value of thediagnosticsrecord component.- Returns:
- the value of the
diagnosticsrecord component
-