Class PackageDependency

java.lang.Object
nl.talsmasoftware.umldoclet.javadoc.dependencies.PackageDependency

public class PackageDependency extends Object
Package dependency.

Contains a 'from' package and a 'to' package. A (from) package has a dependency on a (to) package if there is at least one element in the 'from' package that needs at least one element in the 'to' package.

This class overrides equals and hashCode methods so unique package dependencies can easily be included in hashed collections.

Author:
Sjoerd Talsma
  • Field Details

    • fromPackage

      public final String fromPackage
      The qualified name of the depending package. This package contains at least one element that has a dependency on an element in the toPackage.
    • toPackage

      public final String toPackage
      The qualified name of the depended-upon package. This package contains at least one element that is needed by an element in the fromPackage.
  • Constructor Details

    • PackageDependency

      public PackageDependency(String fromPackage, String toPackage)
      Create a new package dependency object.
      Parameters:
      fromPackage - The package that has a dependency on another package.
      toPackage - The package that is depended upon.
  • Method Details