Class AndDependencySelector
java.lang.Object
org.eclipse.aether.util.graph.selector.AndDependencySelector
- All Implemented Interfaces:
org.eclipse.aether.collection.DependencySelector
public final class AndDependencySelector
extends Object
implements org.eclipse.aether.collection.DependencySelector
A dependency selector that combines zero or more other selectors using a logical
AND
. The resulting selector
selects a given dependency if and only if all constituent selectors do so.-
Constructor Summary
ConstructorDescriptionAndDependencySelector
(Collection<? extends org.eclipse.aether.collection.DependencySelector> selectors) Creates a new selector from the specified selectors.AndDependencySelector
(org.eclipse.aether.collection.DependencySelector... selectors) Creates a new selector from the specified selectors. -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.aether.collection.DependencySelector
deriveChildSelector
(org.eclipse.aether.collection.DependencyCollectionContext context) boolean
int
hashCode()
static org.eclipse.aether.collection.DependencySelector
newInstance
(org.eclipse.aether.collection.DependencySelector selector1, org.eclipse.aether.collection.DependencySelector selector2) Creates a new selector from the specified selectors.boolean
selectDependency
(org.eclipse.aether.graph.Dependency dependency) toString()
-
Constructor Details
-
AndDependencySelector
Creates a new selector from the specified selectors. PrefernewInstance(DependencySelector, DependencySelector)
if any of the input selectors might benull
.- Parameters:
selectors
- The selectors to combine, may benull
but must not containnull
elements.
-
AndDependencySelector
public AndDependencySelector(Collection<? extends org.eclipse.aether.collection.DependencySelector> selectors) Creates a new selector from the specified selectors.- Parameters:
selectors
- The selectors to combine, may benull
but must not containnull
elements.
-
-
Method Details
-
newInstance
public static org.eclipse.aether.collection.DependencySelector newInstance(org.eclipse.aether.collection.DependencySelector selector1, org.eclipse.aether.collection.DependencySelector selector2) Creates a new selector from the specified selectors.- Parameters:
selector1
- The first selector to combine, may benull
.selector2
- The second selector to combine, may benull
.- Returns:
- The combined selector or
null
if both selectors werenull
.
-
selectDependency
- Specified by:
selectDependency
in interfaceorg.eclipse.aether.collection.DependencySelector
-
deriveChildSelector
public org.eclipse.aether.collection.DependencySelector deriveChildSelector(org.eclipse.aether.collection.DependencyCollectionContext context) - Specified by:
deriveChildSelector
in interfaceorg.eclipse.aether.collection.DependencySelector
-
equals
-
hashCode
-
toString
-