Class PathPredicate

  • All Implemented Interfaces:
    Predicate

    public class PathPredicate
    extends Object
    implements Predicate
    The path filter provides hierarchical filtering.
    • Field Detail

      • regex

        protected final Pattern regex
        the internal regex pattern
    • Constructor Detail

      • PathPredicate

        public PathPredicate​(String pattern)
        Creates a new default path filter
         | Pattern | Matches
         | /foo    | exactly "/foo"
         | /foo.*  | all paths starting with "foo."
         | foo.*   | all files starting with "foo."
         | /foo/*  | all direct children of /foo
         | /foo/** | all children of /foo
         
        Parameters:
        pattern - the pattern