Class PathFinder.Filter

    • Constructor Detail

      • Filter

        Filter()
    • Method Detail

      • pass

        abstract boolean pass​(Path path)
        Returns for the given path whether this path passes this filter.
      • not

        PathFinder.Filter not()
        Returns a filter which passes a path iff filter does not. This corresponds the tests \! expr1 in the original find command.
      • and

        static PathFinder.Filter and​(PathFinder.Filter[] filters)
        Returns a filter which passes a path iff so do all filters in filters. This corresponds the tests expr1 -a .... exprn and expr1 -and .... exprn in the original find command.
        Parameters:
        filters - a sequence of filters which may be empty. If empty, this filter passes all paths like PathFinder.TRUE.
        Returns:
        a lazy and-filter of type PathFinder.AndFilter. For more details see there.
      • or

        static PathFinder.Filter or​(PathFinder.Filter[] filters)
        Returns a filter which passes a path iff at least one filter in filters does so. This corresponds the tests expr1 -o .... exprn and expr1 -or .... exprn in the original find command.
        Parameters:
        filters - a sequence of filters which may be empty. If empty, this filter passes no path like PathFinder.FALSE.
        Returns:
        a lazy and-filter of type PathFinder.AndFilter. For more details see there.