Class ModuleDependency<DESCRIPTOR extends ArchModule.Descriptor>
java.lang.Object
com.tngtech.archunit.library.modules.ModuleDependency<DESCRIPTOR>
- All Implemented Interfaces:
HasDescription
@PublicAPI(usage=ACCESS,
state=EXPERIMENTAL)
public final class ModuleDependency<DESCRIPTOR extends ArchModule.Descriptor>
extends Object
implements HasDescription
A dependency between two
ArchModules. I.e. origin and target
are of type ArchModule and the dependency reflects the group of all class dependencies
where the origin class resides in the origin module and the
target class resides in the target module.-
Method Details
-
getOrigin
- Returns:
- The
modulewhere this dependency originates from
-
getTarget
- Returns:
- The
modulethat this dependency targets
-
toClassDependencies
- Returns:
- All the single
class dependenciesthat form thisModuleDependency, i.e. alldependencieswhere theorigin classresides in theorigin moduleand thetarget classresides in thetarget module.
-
getDescription
- Specified by:
getDescriptionin interfaceHasDescription- Returns:
- A textual representation of this
ModuleDependencythat can be used for textual reports.
-
hashCode
public int hashCode() -
equals
-
toString
-