Interface ExtensionPredicate<T extends Path>
- All Superinterfaces:
Predicate<T>
-
Method Summary
Modifier and TypeMethodDescriptiondefault booleanDetermines whether the predicate also scans directoriesGet current predicate accepted extensionsGenerate instance ofExtensionPredicateGenerate instance ofExtensionPredicatedefault booleanEvaluates this predicate on the given argument.
-
Method Details
-
of
@NotNull static <T extends Path> @NotNull Predicate<T> of(boolean acceptDirs, String @NotNull ... extensions) Generate instance ofExtensionPredicate- Type Parameters:
T- predicate object type- Parameters:
acceptDirs- determines whether the predicate also scans directoriesextensions- all accepted extensions without "." dot character- Returns:
- a configured instance of
ExtensionPredicate
-
of
Generate instance ofExtensionPredicate- Type Parameters:
T- predicate object type- Parameters:
extensions- all accepted extensions without "." dot character- Returns:
- a configured instance of
ExtensionPredicate
-
getExtensions
Get current predicate accepted extensions- Returns:
- an array with all predicate extensions
-
accepDirectoryObjects
default boolean accepDirectoryObjects()Determines whether the predicate also scans directories- Returns:
- directory scan status
-
test
Evaluates this predicate on the given argument.
-