public final class StaticDependencySelector extends java.lang.Object implements DependencySelector
| Modifier and Type | Field and Description |
|---|---|
private boolean |
select |
| Constructor and Description |
|---|
StaticDependencySelector(boolean select)
Creates a new selector with the specified selection behavior.
|
| Modifier and Type | Method and Description |
|---|---|
DependencySelector |
deriveChildSelector(DependencyCollectionContext context)
Derives a dependency selector for the specified collection context.
|
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
boolean |
selectDependency(Dependency dependency)
Decides whether the specified dependency should be included in the dependency graph.
|
public StaticDependencySelector(boolean select)
select - true to select all dependencies, false to exclude all dependencies.public boolean selectDependency(Dependency dependency)
DependencySelectorselectDependency in interface DependencySelectordependency - The dependency to check, must not be null.false if the dependency should be excluded from the children of the current node, true
otherwise.public DependencySelector deriveChildSelector(DependencyCollectionContext context)
DependencySelectorderiveChildSelector in interface DependencySelectorcontext - The dependency collection context, must not be null.null if dependencies should be unconditionally
included in the sub graph.public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object