@Override public boolean accept(File file){
  String name=file.getName();
  for (  String wildcard : wildcards) {
    if (FilenameUtils.wildcardMatch(name,wildcard,caseSensitivity)) {
      return true;
    }
  }
  return false;
}

@ Override public boolean accept ( File file ) { String name = file . getName ( ) ; for ( String wildcard : wildcards ) { if ( FilenameUtils . wildcardMatch ( name , wildcard , caseSensitivity ) ) { return true ; } } return false ; }
checks to see if the filename matches one of the wildcards .
