org.apache.commons.io.filefilter

Class NotFileFilter

    • Constructor Detail

      • NotFileFilter

        public NotFileFilter(IOFileFilter filter)
        Constructs a new file filter that NOTs the result of another filter.
        Parameters:
        filter - the filter, must not be null
        Throws:
        IllegalArgumentException - if the filter is null
    • Method Detail

      • accept

        public boolean accept(File file)
        Returns the logical NOT of the underlying filter's return value for the same File.
        Specified by:
        accept in interface FileFilter
        Specified by:
        accept in interface IOFileFilter
        Overrides:
        accept in class AbstractFileFilter
        Parameters:
        file - the File to check
        Returns:
        true if the filter returns false
      • accept

        public boolean accept(File file,             String name)
        Returns the logical NOT of the underlying filter's return value for the same arguments.
        Specified by:
        accept in interface FilenameFilter
        Specified by:
        accept in interface IOFileFilter
        Overrides:
        accept in class AbstractFileFilter
        Parameters:
        file - the File directory
        name - the filename
        Returns:
        true if the filter returns false
      • toString

        public String toString()
        Provide a String representaion of this file filter.
        Overrides:
        toString in class AbstractFileFilter
        Returns:
        a String representaion

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



NOTHING
NOTHING
Add the Maven Dependecy to your project: maven dependecy for com.amazonaws : aws-java-sdk : 1.3.14