public interface IPredicate
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfacestatic interface -
Method Summary
Static MethodsModifier and TypeMethodDescriptionextensionsOf(boolean acceptDirectories, String @NotNull ... extensions) Generate new extension predicateextensionsOf(String @NotNull ... extensions) Generate new extension predicateGenerate new regex predicateGenerate new regex predicate
-
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 validextensions- All valid extensions to evaluate- Returns:
- Returns a new predicate object
-
extensionsOf
Generate new extension predicate- Parameters:
extensions- All valid extensions to evaluate- Returns:
- Returns a new predicate object
-
regexOf
Generate new regex predicate- Parameters:
regex- Regular expressiononlyName- 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
-