public class WildcardMatchOnName extends WildcardMatchOnPath
pattern, wildcardString
Constructor and Description |
---|
WildcardMatchOnName(java.util.regex.Pattern pattern) |
WildcardMatchOnName(java.lang.String wildcardString) |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(MFile file)
Tests if a specified MFile should be included in a file collection.
|
static void |
main(java.lang.String[] args) |
toString
public WildcardMatchOnName(java.lang.String wildcardString)
public WildcardMatchOnName(java.util.regex.Pattern pattern)
public boolean accept(MFile file)
MFileFilter
accept
in interface MFileFilter
accept
in class WildcardMatchOnPath
file
- the MFiletrue
if and only if the mfile should be
included in the file collection; false
otherwise.public static void main(java.lang.String[] args)