Class Dependency


  • public class Dependency
    extends Object
    A directed dependency edge from one class to another, tagged with its kind.
    • Constructor Detail

      • Dependency

        public Dependency​(String fromClass,
                          String toClass,
                          DependencyType type)
        Creates a dependency edge.
        Parameters:
        fromClass - the depending class
        toClass - the class depended upon
        type - the kind of dependency
    • Method Detail

      • getFromClass

        public String getFromClass()
        Returns:
        the from class
      • getToClass

        public String getToClass()
        Returns:
        the to class
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object