public class DependencyGraph<T> extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
DependencyGraph.CyclicReferenceException |
| Constructor and Description |
|---|
DependencyGraph() |
| Modifier and Type | Method and Description |
|---|---|
protected T |
convertElement(T srcElement)
Converts an object into another one of the same type.
|
Collection<T> |
getDependencies(T element)
Returns all dependencies of an element.
|
Collection<T> |
getElements()
Returns all registered elements.
|
void |
registerElement(T element,
T... dependencies)
Registers an element and its dependencies.
|
protected T convertElement(T srcElement)
srcElement - object to be converted.public void registerElement(T element, T... dependencies)
element - element to be registered.dependencies - element dependencies.public Collection<T> getDependencies(T element)
element - element to be inspected.public Collection<T> getElements()
Copyright © 2016 Leandro José Britto de Oliveira. All rights reserved.