public final class AndDependencySelector extends Object implements DependencySelector
AND
. The resulting selector
selects a given dependency if and only if all constituent selectors do so.Constructor and Description |
---|
AndDependencySelector(Collection<? extends DependencySelector> selectors)
Creates a new selector from the specified selectors.
|
AndDependencySelector(DependencySelector... selectors)
Creates a new selector from the specified selectors.
|
Modifier and Type | Method and Description |
---|---|
DependencySelector |
deriveChildSelector(DependencyCollectionContext 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) |
String |
toString() |
public AndDependencySelector(DependencySelector... selectors)
newInstance(DependencySelector, DependencySelector)
if any of the input selectors might be null
.selectors
- The selectors to combine, may be null
but must not contain null
elements.public AndDependencySelector(Collection<? extends DependencySelector> selectors)
selectors
- The selectors to combine, may be null
but must not contain null
elements.public static DependencySelector newInstance(DependencySelector selector1, DependencySelector selector2)
selector1
- The first selector to combine, may be null
.selector2
- The second selector to combine, may be null
.null
if both selectors were null
.public boolean selectDependency(Dependency dependency)
selectDependency
in interface DependencySelector
public DependencySelector deriveChildSelector(DependencyCollectionContext context)
deriveChildSelector
in interface DependencySelector
Copyright © 2010–2022 The Apache Software Foundation. All rights reserved.