kucci / guava-libraries

Automatically exported from code.google.com/p/guava-libraries
Apache License 2.0
0 stars 0 forks source link

Make PatternFilenameFilter implement FileFilter #453

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Could you please make com.google.common.io.PatternFilenameFilter
implement java.io.FileFilter in addition to java.io.FilenameFilter?

It is as easy as adding this short method:
  public final boolean accept(final File file) {
    return accept(file.getParentFile(), file.getName());
  }

Original issue reported on code.google.com by enwi...@gmail.com on 18 Oct 2010 at 7:39

GoogleCodeExporter commented 9 years ago
Sorry for not being able to look at this yet, especially since the fix does 
look as simple as you say.

Original comment by kevinb@google.com on 18 Jul 2011 at 3:40

GoogleCodeExporter commented 9 years ago
While this is simple, I'd argue that it's the wrong approach. Rather what you 
really want is a FileFilter to FilenameFilter adapter.

Original comment by fry@google.com on 27 Jul 2011 at 7:59

GoogleCodeExporter commented 9 years ago
This issue has been migrated to GitHub.

It can be found at https://github.com/google/guava/issues/<id>

Original comment by cgdecker@google.com on 1 Nov 2014 at 4:15

GoogleCodeExporter commented 9 years ago

Original comment by cgdecker@google.com on 3 Nov 2014 at 9:09