public interface IPredicate
  • Method Details

    • extensionsOf

      @Contract(pure=true) @NotNull static @NotNull Predicate<Path> extensionsOf(boolean acceptDirectories, String @NotNull ... extensions)
      Generate new extension predicate
      Parameters:
      acceptDirectories - Check if directories are valid
      extensions - All valid extensions to evaluate
      Returns:
      Returns a new predicate object
    • extensionsOf

      @NotNull static @NotNull Predicate<Path> extensionsOf(String @NotNull ... extensions)
      Generate new extension predicate
      Parameters:
      extensions - All valid extensions to evaluate
      Returns:
      Returns a new predicate object
    • regexOf

      @NotNull static @NotNull Predicate<Path> regexOf(@NotNull @NotNull String regex, boolean onlyName)
      Generate new regex predicate
      Parameters:
      regex - Regular expression
      onlyName - Only checks the file name
      Returns:
      Returns a new predicate object
    • regexOf

      Generate new regex predicate
      Parameters:
      regex - Regular expression
      Returns:
      Returns a new predicate object