public final class AndDependencyTraverser extends Object implements DependencyTraverser
AND
. The resulting
traverser enables processing of child dependencies if and only if all constituent traversers request traversal.Constructor and Description |
---|
AndDependencyTraverser(Collection<? extends DependencyTraverser> traversers)
Creates a new traverser from the specified traversers.
|
AndDependencyTraverser(DependencyTraverser... traversers)
Creates a new traverser from the specified traversers.
|
Modifier and Type | Method and Description |
---|---|
DependencyTraverser |
deriveChildTraverser(DependencyCollectionContext context) |
boolean |
equals(Object obj) |
int |
hashCode() |
static DependencyTraverser |
newInstance(DependencyTraverser traverser1,
DependencyTraverser traverser2)
Creates a new traverser from the specified traversers.
|
boolean |
traverseDependency(Dependency dependency) |
public AndDependencyTraverser(DependencyTraverser... traversers)
newInstance(DependencyTraverser, DependencyTraverser)
if any of the input traversers might be
null
.traversers
- The traversers to combine, may be null
but must not contain null
elements.public AndDependencyTraverser(Collection<? extends DependencyTraverser> traversers)
traversers
- The traversers to combine, may be null
but must not contain null
elements.public static DependencyTraverser newInstance(DependencyTraverser traverser1, DependencyTraverser traverser2)
traverser1
- The first traverser to combine, may be null
.traverser2
- The second traverser to combine, may be null
.null
if both traversers were null
.public boolean traverseDependency(Dependency dependency)
traverseDependency
in interface DependencyTraverser
public DependencyTraverser deriveChildTraverser(DependencyCollectionContext context)
deriveChildTraverser
in interface DependencyTraverser
Copyright © 2010–2022 The Apache Software Foundation. All rights reserved.