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