@Override public boolean accept(File file){
  String name=file.getName();
  for (  String suffix : this.suffixes) {
    if (caseSensitivity.checkEndsWith(name,suffix)) {
      return true;
    }
  }
  return false;
}

@ Override public boolean accept ( File file ) { String name = file . getName ( ) ; for ( String suffix : this . suffixes ) { if ( caseSensitivity . checkEndsWith ( name , suffix ) ) { return true ; } } return false ; }
checks to see if the filename ends with the suffix .
