Interface IPredicate.IRegexPredicate

All Superinterfaces:
Predicate<Path>
Enclosing interface:
IPredicate

public static interface IPredicate.IRegexPredicate extends Predicate<Path>
  • Method Summary

    Modifier and Type
    Method
    Description
    Get predicate pattern
    default boolean
    Accept only file names
    default boolean
    Evaluates this predicate on the given argument.

    Methods inherited from interface java.util.function.Predicate

    and, negate, or
  • Method Details

    • getPattern

      Pattern getPattern()
      Get predicate pattern
      Returns:
      Regex predicate
    • onlyFileNames

      default boolean onlyFileNames()
      Accept only file names
      Returns:
      Return current status
    • test

      default boolean test(@NotNull @NotNull Path path)
      Evaluates this predicate on the given argument.
      Specified by:
      test in interface Predicate<Path>
      Parameters:
      path - the input argument
      Returns:
      true if the input argument matches the predicate, otherwise false