Record Class ModuleDependencyObservation
java.lang.Object
java.lang.Record
dev.archunitjava.rules.ModuleDependencyObservation
- All Implemented Interfaces:
Comparable<ModuleDependencyObservation>
public record ModuleDependencyObservation(ModuleIdentityId origin, String targetModule, String evidenceDomain, Set<DependencyKind> dependencyKinds, List<DependencyEvidence> evidence)
extends Record
implements Comparable<ModuleDependencyObservation>
One detached declared or observed module dependency with its evidence domain kept explicit.
-
Constructor Summary
ConstructorsConstructorDescriptionModuleDependencyObservation(ModuleIdentityId origin, String targetModule, String evidenceDomain, Set<DependencyKind> dependencyKinds, List<DependencyEvidence> evidence) Creates an instance of aModuleDependencyObservationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thedependencyKindsrecord component.final booleanIndicates whether some other object is "equal to" this one.evidence()Returns the value of theevidencerecord component.Returns the value of theevidenceDomainrecord component.final inthashCode()Returns a hash code value for this object.origin()Returns the value of theoriginrecord component.Returns the value of thetargetModulerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ModuleDependencyObservation
public ModuleDependencyObservation(ModuleIdentityId origin, String targetModule, String evidenceDomain, Set<DependencyKind> dependencyKinds, List<DependencyEvidence> evidence) Creates an instance of aModuleDependencyObservationrecord class.- Parameters:
origin- the value for theoriginrecord componenttargetModule- the value for thetargetModulerecord componentevidenceDomain- the value for theevidenceDomainrecord componentdependencyKinds- the value for thedependencyKindsrecord componentevidence- the value for theevidencerecord component
-
-
Method Details
-
comparisonKey
-
compareTo
- Specified by:
compareToin interfaceComparable<ModuleDependencyObservation>
-
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). -
origin
Returns the value of theoriginrecord component.- Returns:
- the value of the
originrecord component
-
targetModule
Returns the value of thetargetModulerecord component.- Returns:
- the value of the
targetModulerecord component
-
evidenceDomain
Returns the value of theevidenceDomainrecord component.- Returns:
- the value of the
evidenceDomainrecord component
-
dependencyKinds
Returns the value of thedependencyKindsrecord component.- Returns:
- the value of the
dependencyKindsrecord component
-
evidence
Returns the value of theevidencerecord component.- Returns:
- the value of the
evidencerecord component
-