Interface DependencyRelation<T extends DependencyRelation<T>>

  • Type Parameters:
    T - the type of objects that express this type of dependency

    public interface DependencyRelation<T extends DependencyRelation<T>>
    Represents the relation of dependency by allowing implementing classes to specify the set of objects that they directly depend upon. (These objects may in turn depend upon other objects, recursively, so that an object may have both direct and indirect dependencies.)
    Since:
    3.0
    Author:
    Chris Jennings
    See Also:
    TopologicalSorter
    • Method Detail

      • getDependants

        java.util.Set<T> getDependants()
        Returns a set of objects that this object depends upon. If this object does not depend on any objects, it is allowed to return either null or an empty set.
        Returns:
        the set of objects directly required by this object