org.apache.commons.io.filefilter

Class FileEqualsFileFilter

    • Constructor Detail

      • FileEqualsFileFilter

        public FileEqualsFileFilter(File file)
        Constructs a new instance for the given File.
        Parameters:
        file - The file to match.
    • Method Detail

      • accept

        public FileVisitResult accept(Path path,
                                      BasicFileAttributes attributes)
        Description copied from interface: IOFileFilter
        Checks to see if the Path should be accepted by this filter.
        Parameters:
        path - the Path to check.
        attributes - the file's basic attributes (TODO may be null).
        Returns:
        true if this path matches the test.

Copyright © 2002–2021 The Apache Software Foundation. All rights reserved.