Record Class DeclarationDependencyResult
java.lang.Object
java.lang.Record
dev.archunitjava.model.DeclarationDependencyResult
public record DeclarationDependencyResult(List<DeclarationDependency> dependencies, List<JavaTypeName> externalTargets, int primitiveReferencesIgnored, int duplicateSourcesCollapsed)
extends Record
Declaration extraction output plus explicit normalization accounting.
-
Constructor Summary
ConstructorsConstructorDescriptionDeclarationDependencyResult(List<DeclarationDependency> dependencies, List<JavaTypeName> externalTargets, int primitiveReferencesIgnored, int duplicateSourcesCollapsed) Creates an instance of aDeclarationDependencyResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedependenciesrecord component.intReturns the value of theduplicateSourcesCollapsedrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexternalTargetsrecord component.final inthashCode()Returns a hash code value for this object.intReturns the value of theprimitiveReferencesIgnoredrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DeclarationDependencyResult
public DeclarationDependencyResult(List<DeclarationDependency> dependencies, List<JavaTypeName> externalTargets, int primitiveReferencesIgnored, int duplicateSourcesCollapsed) Creates an instance of aDeclarationDependencyResultrecord class.- Parameters:
dependencies- the value for thedependenciesrecord componentexternalTargets- the value for theexternalTargetsrecord componentprimitiveReferencesIgnored- the value for theprimitiveReferencesIgnoredrecord componentduplicateSourcesCollapsed- the value for theduplicateSourcesCollapsedrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
dependencies
Returns the value of thedependenciesrecord component.- Returns:
- the value of the
dependenciesrecord component
-
externalTargets
Returns the value of theexternalTargetsrecord component.- Returns:
- the value of the
externalTargetsrecord component
-
primitiveReferencesIgnored
public int primitiveReferencesIgnored()Returns the value of theprimitiveReferencesIgnoredrecord component.- Returns:
- the value of the
primitiveReferencesIgnoredrecord component
-
duplicateSourcesCollapsed
public int duplicateSourcesCollapsed()Returns the value of theduplicateSourcesCollapsedrecord component.- Returns:
- the value of the
duplicateSourcesCollapsedrecord component
-