-
Method Summary
default boolean
Determines whether to inspect the full path or just the filename
default boolean
Evaluates this predicate on the given argument.
-
Method Details
-
of
- Type Parameters:
T - predicate object type
- Parameters:
fullPath - determines whether to inspect the full path or just the filename
regex - regular expression to check each element
- Returns:
- a configured instance of
RegexPredicate
-
of
- Type Parameters:
T - predicate object type
- Parameters:
regex - regular expression to check each element
- Returns:
- a configured instance of
RegexPredicate
-
getPattern
Get predicate pattern
- Returns:
- compiled regex predicate
-
isFullPathInspect
default boolean isFullPathInspect()
Determines whether to inspect the full path or just the filename
- Returns:
true if the full path is inspected or false if
only the file name is inspected
-
test
Evaluates this predicate on the given argument.
- Specified by:
test in interface Predicate<T extends Path>
- Parameters:
path - the input argument
- Returns:
true if the input argument matches the predicate,
otherwise false