Package ca.cgjennings.algo
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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Set<T>
getDependants()
Returns a set of objects that this object depends upon.
-
-
-
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 eithernull
or an empty set.- Returns:
- the set of objects directly required by this object
-
-