Class FalseFileFilter

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean accept​(java.io.File file)
      Returns false.
      boolean accept​(java.io.File dir, java.lang.String name)
      Returns false.
      java.nio.file.FileVisitResult accept​(java.nio.file.Path file, java.nio.file.attribute.BasicFileAttributes attributes)
      Returns false.
      IOFileFilter and​(IOFileFilter fileFilter)
      Creates a new "and" filter with this filter.
      IOFileFilter negate()
      Creates a new "not" filter with this filter.
      IOFileFilter or​(IOFileFilter fileFilter)
      Creates a new "or" filter with this filter.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • FALSE

        public static final IOFileFilter FALSE
        Singleton instance of false filter.
        Since:
        1.3
      • INSTANCE

        public static final IOFileFilter INSTANCE
        Singleton instance of false filter. Please use the identical FalseFileFilter.FALSE constant. The new name is more JDK 1.5 friendly as it doesn't clash with other values when using static imports.
    • Method Detail

      • accept

        public boolean accept​(java.io.File file)
        Returns false.
        Specified by:
        accept in interface java.io.FileFilter
        Specified by:
        accept in interface IOFileFilter
        Parameters:
        file - the file to check (ignored)
        Returns:
        false
      • accept

        public boolean accept​(java.io.File dir,
                              java.lang.String name)
        Returns false.
        Specified by:
        accept in interface java.io.FilenameFilter
        Specified by:
        accept in interface IOFileFilter
        Parameters:
        dir - the directory to check (ignored)
        name - the file name (ignored)
        Returns:
        false
      • accept

        public java.nio.file.FileVisitResult accept​(java.nio.file.Path file,
                                                    java.nio.file.attribute.BasicFileAttributes attributes)
        Returns false.
        Specified by:
        accept in interface IOFileFilter
        Specified by:
        accept in interface PathFilter
        Parameters:
        file - the file to check (ignored)
        attributes - the file's basic attributes (TODO may be null).
        Returns:
        false
        Since:
        2.9.0
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • and

        public IOFileFilter and​(IOFileFilter fileFilter)
        Description copied from interface: IOFileFilter
        Creates a new "and" filter with this filter.
        Specified by:
        and in interface IOFileFilter
        Parameters:
        fileFilter - the filter to "and".
        Returns:
        a new filter.
      • or

        public IOFileFilter or​(IOFileFilter fileFilter)
        Description copied from interface: IOFileFilter
        Creates a new "or" filter with this filter.
        Specified by:
        or in interface IOFileFilter
        Parameters:
        fileFilter - the filter to "or".
        Returns:
        a new filter.