Package eu.simuline.util
Class PathFinder.NameFilter
- java.lang.Object
-
- eu.simuline.util.PathFinder.Filter
-
- eu.simuline.util.PathFinder.NameFilter
-
- Enclosing class:
- PathFinder
static class PathFinder.NameFilter extends PathFinder.Filter
Filters paths by name. SeePathFinder.name(String).
-
-
Constructor Summary
Constructors Constructor Description NameFilter(String pattern)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanpass(Path path)Returns for the given path whether this path passes this filter.-
Methods inherited from class eu.simuline.util.PathFinder.Filter
and, not, or
-
-
-
-
Field Detail
-
pattern
private final Pattern pattern
The pattern to filter the pathnames with.
-
-
Constructor Detail
-
NameFilter
NameFilter(String pattern)
-
-
Method Detail
-
pass
public boolean pass(Path path)
Description copied from class:PathFinder.FilterReturns for the given path whether this path passes this filter.- Specified by:
passin classPathFinder.Filter
-
-