Record Class ModuleDependencyComparison
java.lang.Object
java.lang.Record
dev.archunitjava.rules.ModuleDependencyComparison
public record ModuleDependencyComparison(List<ModuleDependencyObservation> declaredRequires, List<ModuleDependencyObservation> observedDependencies, List<ModuleDependencyObservation> observedWithoutRequires, List<ModuleDependencyObservation> requiresWithoutObserved, int unmappedObservedEdges)
extends Record
Detached comparison of declared readability and bytecode-observed module dependencies.
-
Constructor Summary
ConstructorsConstructorDescriptionModuleDependencyComparison(List<ModuleDependencyObservation> declaredRequires, List<ModuleDependencyObservation> observedDependencies, List<ModuleDependencyObservation> observedWithoutRequires, List<ModuleDependencyObservation> requiresWithoutObserved, int unmappedObservedEdges) Creates an instance of aModuleDependencyComparisonrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedeclaredRequiresrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theobservedDependenciesrecord component.Returns the value of theobservedWithoutRequiresrecord component.Returns the value of therequiresWithoutObservedrecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of theunmappedObservedEdgesrecord component.
-
Constructor Details
-
ModuleDependencyComparison
public ModuleDependencyComparison(List<ModuleDependencyObservation> declaredRequires, List<ModuleDependencyObservation> observedDependencies, List<ModuleDependencyObservation> observedWithoutRequires, List<ModuleDependencyObservation> requiresWithoutObserved, int unmappedObservedEdges) Creates an instance of aModuleDependencyComparisonrecord class.- Parameters:
declaredRequires- the value for thedeclaredRequiresrecord componentobservedDependencies- the value for theobservedDependenciesrecord componentobservedWithoutRequires- the value for theobservedWithoutRequiresrecord componentrequiresWithoutObserved- the value for therequiresWithoutObservedrecord componentunmappedObservedEdges- the value for theunmappedObservedEdgesrecord 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. -
declaredRequires
Returns the value of thedeclaredRequiresrecord component.- Returns:
- the value of the
declaredRequiresrecord component
-
observedDependencies
Returns the value of theobservedDependenciesrecord component.- Returns:
- the value of the
observedDependenciesrecord component
-
observedWithoutRequires
Returns the value of theobservedWithoutRequiresrecord component.- Returns:
- the value of the
observedWithoutRequiresrecord component
-
requiresWithoutObserved
Returns the value of therequiresWithoutObservedrecord component.- Returns:
- the value of the
requiresWithoutObservedrecord component
-
unmappedObservedEdges
public int unmappedObservedEdges()Returns the value of theunmappedObservedEdgesrecord component.- Returns:
- the value of the
unmappedObservedEdgesrecord component
-