|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.sonatype.aether.util.filter.DependencyFilterUtils
public class DependencyFilterUtils
A utility class assisting in the creation of dependency node filters.
Method Summary | |
---|---|
static DependencyFilter |
andFilter(Collection<DependencyFilter> filters)
Creates a new filter that combines the specified filters using a logical AND . |
static DependencyFilter |
andFilter(DependencyFilter... filters)
Creates a new filter that combines the specified filters using a logical AND . |
static DependencyFilter |
classpathFilter(Collection<String> classpathTypes)
Creates a new filter that selects dependencies whose scope matches one or more of the specified classpath types. |
static DependencyFilter |
classpathFilter(String... classpathTypes)
Creates a new filter that selects dependencies whose scope matches one or more of the specified classpath types. |
static DependencyFilter |
notFilter(DependencyFilter filter)
Creates a new filter that negates the specified filter. |
static DependencyFilter |
orFilter(Collection<DependencyFilter> filters)
Creates a new filter that combines the specified filters using a logical OR . |
static DependencyFilter |
orFilter(DependencyFilter... filters)
Creates a new filter that combines the specified filters using a logical OR . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static DependencyFilter notFilter(DependencyFilter filter)
filter
- The filter to negate, must not be null
.
null
.public static DependencyFilter andFilter(DependencyFilter... filters)
AND
. If no filters are
specified, the resulting filter accepts everything.
filters
- The filters to combine, may be null
.
null
.public static DependencyFilter andFilter(Collection<DependencyFilter> filters)
AND
. If no filters are
specified, the resulting filter accepts everything.
filters
- The filters to combine, may be null
.
null
.public static DependencyFilter orFilter(DependencyFilter... filters)
OR
. If no filters are specified,
the resulting filter accepts nothing.
filters
- The filters to combine, may be null
.
null
.public static DependencyFilter orFilter(Collection<DependencyFilter> filters)
OR
. If no filters are specified,
the resulting filter accepts nothing.
filters
- The filters to combine, may be null
.
null
.public static DependencyFilter classpathFilter(String... classpathTypes)
','
or '+'
.
classpathTypes
- The classpath types, may be null
or empty to match no dependency.
null
.JavaScopes
public static DependencyFilter classpathFilter(Collection<String> classpathTypes)
','
or '+'
.
classpathTypes
- The classpath types, may be null
or empty to match no dependency.
null
.JavaScopes
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |