public class AncestorOrSelfDependencyNodeFilter extends Object implements DependencyNodeFilter
| Constructor and Description |
|---|
AncestorOrSelfDependencyNodeFilter(DependencyNode descendantNode) |
AncestorOrSelfDependencyNodeFilter(List<DependencyNode> descendantNodes)
Creates a dependency node filter that only accepts nodes that are ancestors of, or equal to, the specified list
of nodes.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(DependencyNode node)
Gets whether this filter accepts the specified dependency node.
|
public AncestorOrSelfDependencyNodeFilter(DependencyNode descendantNode)
public AncestorOrSelfDependencyNodeFilter(List<DependencyNode> descendantNodes)
descendantNodes - the list of nodes to accept ancestors-or-self ofpublic boolean accept(DependencyNode node)
accept in interface DependencyNodeFilternode - the dependency node to checktrue if this filter accepts the specified dependency nodeCopyright © 2002–2024 The Apache Software Foundation. All rights reserved.