|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.sonatype.aether.util.filter.ScopeDependencyFilter
public class ScopeDependencyFilter
A dependency filter based on dependency scopes. Note: This filter does not assume any relationships between the scopes. In particular, the filter is not aware of scopes that logically include other scopes.
Dependency.getScope()
Constructor Summary | |
---|---|
ScopeDependencyFilter(java.util.Collection<java.lang.String> included,
java.util.Collection<java.lang.String> excluded)
Creates a new filter using the specified includes and excludes. |
|
ScopeDependencyFilter(java.lang.String... excluded)
Creates a new filter using the specified excludes. |
Method Summary | |
---|---|
boolean |
accept(DependencyNode node,
java.util.List<DependencyNode> parents)
Indicates whether the specified dependency node shall be included or excluded. |
boolean |
equals(java.lang.Object obj)
|
int |
hashCode()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ScopeDependencyFilter(java.util.Collection<java.lang.String> included, java.util.Collection<java.lang.String> excluded)
included
- The set of scopes to include, may be null
or empty to include any scope.excluded
- The set of scopes to exclude, may be null
or empty to exclude no scope.public ScopeDependencyFilter(java.lang.String... excluded)
excluded
- The set of scopes to exclude, may be null
or empty to exclude no scope.Method Detail |
---|
public boolean accept(DependencyNode node, java.util.List<DependencyNode> parents)
DependencyFilter
accept
in interface DependencyFilter
node
- The dependency node to filter, must not be null
.parents
- The (read-only) chain of parent nodes that leads to the node to be filtered, must not be
null
. Iterating this (possibly empty) list walks up the dependency graph towards the root
node, i.e. the immediate parent node (if any) is the first node in the list. The size of the list also
denotes the zero-based depth of the filtered node.
true
to include the dependency node, false
to exclude it.public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |