Class TrueFileFilter

  • All Implemented Interfaces:
    java.io.Serializable, FileFilter

    public class TrueFileFilter
    extends java.lang.Object
    implements FileFilter, java.io.Serializable
    A file filter that always returns true.
    Since:
    2.4
    See Also:
    "http://commons.apache.org/proper/commons-io/", Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static long serialVersionUID  
      static FileFilter TRUE
      Singleton instance of true filter.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected TrueFileFilter()
      Restrictive constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean accept​(FileSelectInfo fileSelectInfo)
      Returns true.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • TRUE

        public static final FileFilter TRUE
        Singleton instance of true filter.
    • Constructor Detail

      • TrueFileFilter

        protected TrueFileFilter()
        Restrictive constructor.
    • Method Detail

      • accept

        public boolean accept​(FileSelectInfo fileSelectInfo)
        Returns true.
        Specified by:
        accept in interface FileFilter
        Parameters:
        fileSelectInfo - the file to check (ignored)
        Returns:
        Always true