Class AndDependencyTraverser
java.lang.Object
org.eclipse.aether.util.graph.traverser.AndDependencyTraverser
- All Implemented Interfaces:
org.eclipse.aether.collection.DependencyTraverser
public final class AndDependencyTraverser
extends Object
implements org.eclipse.aether.collection.DependencyTraverser
A dependency traverser that combines zero or more other traversers using a logical
AND
. The resulting
traverser enables processing of child dependencies if and only if all constituent traversers request traversal.-
Constructor Summary
ConstructorDescriptionAndDependencyTraverser
(Collection<? extends org.eclipse.aether.collection.DependencyTraverser> traversers) Creates a new traverser from the specified traversers.AndDependencyTraverser
(org.eclipse.aether.collection.DependencyTraverser... traversers) Creates a new traverser from the specified traversers. -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.aether.collection.DependencyTraverser
deriveChildTraverser
(org.eclipse.aether.collection.DependencyCollectionContext context) boolean
int
hashCode()
static org.eclipse.aether.collection.DependencyTraverser
newInstance
(org.eclipse.aether.collection.DependencyTraverser traverser1, org.eclipse.aether.collection.DependencyTraverser traverser2) Creates a new traverser from the specified traversers.boolean
traverseDependency
(org.eclipse.aether.graph.Dependency dependency)
-
Constructor Details
-
AndDependencyTraverser
Creates a new traverser from the specified traversers. PrefernewInstance(DependencyTraverser, DependencyTraverser)
if any of the input traversers might benull
.- Parameters:
traversers
- The traversers to combine, may benull
but must not containnull
elements.
-
AndDependencyTraverser
public AndDependencyTraverser(Collection<? extends org.eclipse.aether.collection.DependencyTraverser> traversers) Creates a new traverser from the specified traversers.- Parameters:
traversers
- The traversers to combine, may benull
but must not containnull
elements.
-
-
Method Details
-
newInstance
public static org.eclipse.aether.collection.DependencyTraverser newInstance(org.eclipse.aether.collection.DependencyTraverser traverser1, org.eclipse.aether.collection.DependencyTraverser traverser2) Creates a new traverser from the specified traversers.- Parameters:
traverser1
- The first traverser to combine, may benull
.traverser2
- The second traverser to combine, may benull
.- Returns:
- The combined traverser or
null
if both traversers werenull
.
-
traverseDependency
- Specified by:
traverseDependency
in interfaceorg.eclipse.aether.collection.DependencyTraverser
-
deriveChildTraverser
public org.eclipse.aether.collection.DependencyTraverser deriveChildTraverser(org.eclipse.aether.collection.DependencyCollectionContext context) - Specified by:
deriveChildTraverser
in interfaceorg.eclipse.aether.collection.DependencyTraverser
-
equals
-
hashCode
-