Class PathEqualsFileFilter

    • Constructor Detail

      • PathEqualsFileFilter

        public PathEqualsFileFilter​(Path file)
        Constructs a new instance for the given Path.
        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.