public final class CollectResult extends java.lang.Object
| Constructor | Description |
|---|---|
CollectResult(CollectRequest request) |
Creates a new result for the specified request.
|
| Modifier and Type | Method | Description |
|---|---|---|
CollectResult |
addCycle(DependencyCycle cycle) |
Records the specified dependency cycle.
|
CollectResult |
addException(java.lang.Exception exception) |
Records the specified exception while building the dependency graph.
|
java.util.List<DependencyCycle> |
getCycles() |
Gets the dependency cycles that were encountered while building the dependency graph.
|
java.util.List<java.lang.Exception> |
getExceptions() |
Gets the exceptions that occurred while building the dependency graph.
|
CollectRequest |
getRequest() |
Gets the collection request that was made.
|
DependencyNode |
getRoot() |
Gets the root node of the dependency graph.
|
CollectResult |
setRoot(DependencyNode root) |
Sets the root node of the dependency graph.
|
java.lang.String |
toString() |
public CollectResult(CollectRequest request)
request - The resolution request, must not be null.public CollectRequest getRequest()
null.public java.util.List<java.lang.Exception> getExceptions()
null.public CollectResult addException(java.lang.Exception exception)
exception - The exception to record, may be null.null.public java.util.List<DependencyCycle> getCycles()
null.public CollectResult addCycle(DependencyCycle cycle)
cycle - The dependency cycle to record, may be null.null.public DependencyNode getRoot()
null if none.public CollectResult setRoot(DependencyNode root)
root - The root node of the dependency graph, may be null.null.public java.lang.String toString()
toString in class java.lang.Object