Interface ModuleDependency.Filter

All Superinterfaces:
Comparable<ModuleDependency.Filter>
Enclosing class:
ModuleDependency

public static interface ModuleDependency.Filter extends Comparable<ModuleDependency.Filter>
A simple filter of the dependency to filter paths.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Whether the filter should be an include or exclude.
    of(String path, boolean include)
    Creates a new path filter.
    The relative path of the filter

    Methods inherited from interface java.lang.Comparable

    compareTo
  • Method Details

    • of

      static ModuleDependency.Filter of(String path, boolean include)
      Creates a new path filter.
      Parameters:
      path - the path to filter
      include - whether the filter should be an include or exclude
      Returns:
      a new filter
    • path

      String path()
      The relative path of the filter
      Returns:
      the relative path
    • include

      boolean include()
      Whether the filter should be an include or exclude.
      Returns:
      true for an include filter, false for an exclude filter