Class DependencyFilterUtils

java.lang.Object
org.eclipse.aether.util.filter.DependencyFilterUtils

public final class DependencyFilterUtils extends Object
A utility class assisting in the creation of dependency node filters.
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.eclipse.aether.graph.DependencyFilter
    andFilter(Collection<org.eclipse.aether.graph.DependencyFilter> filters)
    Creates a new filter that combines the specified filters using a logical AND.
    static org.eclipse.aether.graph.DependencyFilter
    andFilter(org.eclipse.aether.graph.DependencyFilter... filters)
    Creates a new filter that combines the specified filters using a logical AND.
    static org.eclipse.aether.graph.DependencyFilter
    classpathFilter(String... classpathTypes)
    Deprecated.
    Resolver is oblivious about "scopes", it is consumer project which needs to lay these down and also assign proper semantics.
    static org.eclipse.aether.graph.DependencyFilter
    Deprecated.
    Resolver is oblivious about "scopes", it is consumer project which needs to lay these down and also assign proper semantics.
    static org.eclipse.aether.graph.DependencyFilter
    notFilter(org.eclipse.aether.graph.DependencyFilter filter)
    Creates a new filter that negates the specified filter.
    static org.eclipse.aether.graph.DependencyFilter
    orFilter(Collection<org.eclipse.aether.graph.DependencyFilter> filters)
    Creates a new filter that combines the specified filters using a logical OR.
    static org.eclipse.aether.graph.DependencyFilter
    orFilter(org.eclipse.aether.graph.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 Details

    • notFilter

      public static org.eclipse.aether.graph.DependencyFilter notFilter(org.eclipse.aether.graph.DependencyFilter filter)
      Creates a new filter that negates the specified filter.
      Parameters:
      filter - The filter to negate, must not be null.
      Returns:
      The new filter, never null.
    • andFilter

      public static org.eclipse.aether.graph.DependencyFilter andFilter(org.eclipse.aether.graph.DependencyFilter... filters)
      Creates a new filter that combines the specified filters using a logical AND. If no filters are specified, the resulting filter accepts everything.
      Parameters:
      filters - The filters to combine, may be null.
      Returns:
      The new filter, never null.
    • andFilter

      public static org.eclipse.aether.graph.DependencyFilter andFilter(Collection<org.eclipse.aether.graph.DependencyFilter> filters)
      Creates a new filter that combines the specified filters using a logical AND. If no filters are specified, the resulting filter accepts everything.
      Parameters:
      filters - The filters to combine, may be null.
      Returns:
      The new filter, never null.
    • orFilter

      public static org.eclipse.aether.graph.DependencyFilter orFilter(org.eclipse.aether.graph.DependencyFilter... filters)
      Creates a new filter that combines the specified filters using a logical OR. If no filters are specified, the resulting filter accepts nothing.
      Parameters:
      filters - The filters to combine, may be null.
      Returns:
      The new filter, never null.
    • orFilter

      public static org.eclipse.aether.graph.DependencyFilter orFilter(Collection<org.eclipse.aether.graph.DependencyFilter> filters)
      Creates a new filter that combines the specified filters using a logical OR. If no filters are specified, the resulting filter accepts nothing.
      Parameters:
      filters - The filters to combine, may be null.
      Returns:
      The new filter, never null.
    • classpathFilter

      @Deprecated public static org.eclipse.aether.graph.DependencyFilter classpathFilter(String... classpathTypes)
      Deprecated.
      Resolver is oblivious about "scopes", it is consumer project which needs to lay these down and also assign proper semantics. Moreover, Resolver is oblivious about notions of "classpath", "modulepath", and any other similar uses. These should be handled by consumer project.
      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 be null or empty to match no dependency.
      Returns:
      The new filter, never null.
      See Also:
    • classpathFilter

      @Deprecated public static org.eclipse.aether.graph.DependencyFilter classpathFilter(Collection<String> classpathTypes)
      Deprecated.
      Resolver is oblivious about "scopes", it is consumer project which needs to lay these down and also assign proper semantics. Moreover, Resolver is oblivious about notions of "classpath", "modulepath", and any other similar uses. These should be handled by consumer project.
      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 be null or empty to match no dependency.
      Returns:
      The new filter, never null.
      See Also: