Class PathSelectors


  • public class PathSelectors
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.function.Predicate<java.lang.String> ant​(java.lang.String antPattern)
      Predicate that evaluates the supplied ant pattern
      static java.util.function.Predicate<java.lang.String> any()
      Any path satisfies this condition
      static java.util.function.Predicate<java.lang.String> none()
      No path satisfies this condition
      static java.util.function.Predicate<java.lang.String> regex​(java.lang.String pathRegex)
      Predicate that evaluates the supplied regular expression
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • any

        public static java.util.function.Predicate<java.lang.String> any()
        Any path satisfies this condition
        Returns:
        predicate that is always true
      • none

        public static java.util.function.Predicate<java.lang.String> none()
        No path satisfies this condition
        Returns:
        predicate that is always false
      • regex

        public static java.util.function.Predicate<java.lang.String> regex​(java.lang.String pathRegex)
        Predicate that evaluates the supplied regular expression
        Parameters:
        pathRegex - - regex
        Returns:
        predicate that matches a particular regex
      • ant

        public static java.util.function.Predicate<java.lang.String> ant​(java.lang.String antPattern)
        Predicate that evaluates the supplied ant pattern
        Parameters:
        antPattern - - ant Pattern
        Returns:
        predicate that matches a particular ant pattern