Interface File.FilenameFilter

Enclosing class:
File

public static interface File.FilenameFilter
Interface to filter filenames.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    accept(File f, String name)
    Checks if the given file should be included in results.
  • Method Details

    • accept

      boolean accept(File f, String name)

      Checks if the given file should be included in results.

      Parameters
      • f: The parent directory of the file to check.

      • name: The file name.

      Returns

      True if the file should be included in results.