public class AndDependencySelector extends Object implements DependencySelector
AND
.Constructor and Description |
---|
AndDependencySelector(DependencySelector... selectors)
Creates a new selector from the specified selectors.
|
AndDependencySelector(Set<DependencySelector> selectors)
Creates a new selector from the specified selectors.
|
Modifier and Type | Method and Description |
---|---|
DependencySelector |
deriveChildSelector(DependencyCollectionContext context)
Derives a dependency selector for the specified collection context.
|
boolean |
equals(Object obj) |
int |
hashCode() |
static DependencySelector |
newInstance(DependencySelector selector1,
DependencySelector selector2)
Creates a new selector from the specified selectors.
|
boolean |
selectDependency(Dependency dependency)
Applies exclusions to the specified dependency.
|
public AndDependencySelector(DependencySelector... selectors)
selectors
- The selectors to combine, may be null
.public AndDependencySelector(Set<DependencySelector> selectors)
selectors
- The selectors to combine, may be null
.public static DependencySelector newInstance(DependencySelector selector1, DependencySelector selector2)
selector1
- The first selector to combine, may be null
.selector2
- The first selector to combine, may be null
.null
if both selectors were null
.public boolean selectDependency(Dependency dependency)
DependencySelector
selectDependency
in interface DependencySelector
dependency
- The dependency to filter, 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)
DependencySelector
deriveChildSelector
in interface DependencySelector
context
- The dependency collection context, must not be null
.null
.Copyright © 2010-2012 Sonatype, Inc.. All Rights Reserved.