Class ArchiverHelper.DirectoryFileFilter

  • All Implemented Interfaces:
    FileFilter
    Enclosing class:
    ArchiverHelper

    public static class ArchiverHelper.DirectoryFileFilter
    extends Object
    implements FileFilter
    FileFilter implementation that only includes directories.
    • Field Detail

      • INSTANCE

        public static final FileFilter INSTANCE
        Singleton instance.
    • Constructor Detail

      • DirectoryFileFilter

        public DirectoryFileFilter()
    • Method Detail

      • accept

        public boolean accept​(File file)
        Accept the given file only if it is a directory.
        Specified by:
        accept in interface FileFilter
        Parameters:
        file - the file
        Returns:
        true if the given file is a directory