Package org.eclipse.aether.util.filter
Class DependencyFilterUtils
- java.lang.Object
-
- org.eclipse.aether.util.filter.DependencyFilterUtils
-
public final class DependencyFilterUtils extends java.lang.ObjectA utility class assisting in the creation of dependency node filters.
-
-
Constructor Summary
Constructors Modifier Constructor Description privateDependencyFilterUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DependencyFilterandFilter(java.util.Collection<DependencyFilter> filters)Creates a new filter that combines the specified filters using a logicalAND.static DependencyFilterandFilter(DependencyFilter... filters)Creates a new filter that combines the specified filters using a logicalAND.static DependencyFilterclasspathFilter(java.lang.String... classpathTypes)Creates a new filter that selects dependencies whose scope matches one or more of the specified classpath types.static DependencyFilterclasspathFilter(java.util.Collection<java.lang.String> classpathTypes)Creates a new filter that selects dependencies whose scope matches one or more of the specified classpath types.static DependencyFilternotFilter(DependencyFilter filter)Creates a new filter that negates the specified filter.static DependencyFilterorFilter(java.util.Collection<DependencyFilter> filters)Creates a new filter that combines the specified filters using a logicalOR.static DependencyFilterorFilter(DependencyFilter... filters)Creates a new filter that combines the specified filters using a logicalOR.
-
-
-
Method Detail
-
notFilter
public static DependencyFilter notFilter(DependencyFilter filter)
Creates a new filter that negates the specified filter.- Parameters:
filter- The filter to negate, must not benull.- Returns:
- The new filter, never
null.
-
andFilter
public static DependencyFilter andFilter(DependencyFilter... filters)
Creates a new filter that combines the specified filters using a logicalAND. If no filters are specified, the resulting filter accepts everything.- Parameters:
filters- The filters to combine, may benull.- Returns:
- The new filter, never
null.
-
andFilter
public static DependencyFilter andFilter(java.util.Collection<DependencyFilter> filters)
Creates a new filter that combines the specified filters using a logicalAND. If no filters are specified, the resulting filter accepts everything.- Parameters:
filters- The filters to combine, may benull.- Returns:
- The new filter, never
null.
-
orFilter
public static DependencyFilter orFilter(DependencyFilter... filters)
Creates a new filter that combines the specified filters using a logicalOR. If no filters are specified, the resulting filter accepts nothing.- Parameters:
filters- The filters to combine, may benull.- Returns:
- The new filter, never
null.
-
orFilter
public static DependencyFilter orFilter(java.util.Collection<DependencyFilter> filters)
Creates a new filter that combines the specified filters using a logicalOR. If no filters are specified, the resulting filter accepts nothing.- Parameters:
filters- The filters to combine, may benull.- Returns:
- The new filter, never
null.
-
classpathFilter
public static DependencyFilter classpathFilter(java.lang.String... classpathTypes)
Creates a new filter that selects dependencies whose scope matches one or more of the specified classpath types. A classpath type is a set of scopes separated by either','or'+'.- Parameters:
classpathTypes- The classpath types, may benullor empty to match no dependency.- Returns:
- The new filter, never
null. - See Also:
JavaScopes
-
classpathFilter
public static DependencyFilter classpathFilter(java.util.Collection<java.lang.String> classpathTypes)
Creates a new filter that selects dependencies whose scope matches one or more of the specified classpath types. A classpath type is a set of scopes separated by either','or'+'.- Parameters:
classpathTypes- The classpath types, may benullor empty to match no dependency.- Returns:
- The new filter, never
null. - See Also:
JavaScopes
-
-