Interface ExtensionPredicate<T>
- 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.default booleandefault booleandefault booleantestZipEntry(@NotNull ZipEntry entry)
-
Method Details
-
of
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. -
testPath
-
testFile
-
testZipEntry
-