public final class OrDependencyFilter extends Object implements DependencyFilter
OR.| Constructor and Description |
|---|
OrDependencyFilter(Collection<DependencyFilter> filters)
Creates a new filter from the specified filters.
|
OrDependencyFilter(DependencyFilter... filters)
Creates a new filter from the specified filters.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(DependencyNode node,
List<DependencyNode> parents) |
boolean |
equals(Object obj) |
int |
hashCode() |
static DependencyFilter |
newInstance(DependencyFilter filter1,
DependencyFilter filter2)
Creates a new filter from the specified filters.
|
public OrDependencyFilter(DependencyFilter... filters)
filters - The filters to combine, may be null.public OrDependencyFilter(Collection<DependencyFilter> filters)
filters - The filters to combine, may be null.public static DependencyFilter newInstance(DependencyFilter filter1, DependencyFilter filter2)
filter1 - The first filter to combine, may be null.filter2 - The first filter to combine, may be null.null if both filter were null.public boolean accept(DependencyNode node, List<DependencyNode> parents)
accept in interface DependencyFilterCopyright © 2010–2022 The Apache Software Foundation. All rights reserved.