Package org.apache.commons.io.filefilter
Class FalseFileFilter
java.lang.Object
org.apache.commons.io.filefilter.FalseFileFilter
- All Implemented Interfaces:
- FileFilter,- FilenameFilter,- Serializable,- PathMatcher,- PathFilter,- IOFileFilter
A file filter that always returns false.
 
Deprecating Serialization
Serialization is deprecated and will be removed in 3.0.
- Since:
- 1.0
- See Also:
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final IOFileFilterSingleton instance of false filter.static final IOFileFilterSingleton instance of false filter.Fields inherited from interface org.apache.commons.io.filefilter.IOFileFilterEMPTY_STRING_ARRAY
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleanReturns false.booleanReturns false.accept(Path file, BasicFileAttributes attributes) Returns false.and(IOFileFilter fileFilter) Constructs a new "and" filter with this filter.negate()Constructs a new "not" filter with this filter.or(IOFileFilter fileFilter) Constructs a new "or" filter with this filter.toString()Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.commons.io.filefilter.IOFileFiltermatches
- 
Field Details- 
FALSESingleton instance of false filter.- Since:
- 1.3
 
- 
INSTANCESingleton 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.
 
- 
- 
Constructor Details- 
FalseFileFilterprotected FalseFileFilter()Restrictive constructor.
 
- 
- 
Method Details- 
acceptReturns false.- Specified by:
- acceptin interface- FileFilter
- Specified by:
- acceptin interface- IOFileFilter
- Parameters:
- file- the file to check (ignored)
- Returns:
- false
 
- 
acceptReturns false.- Specified by:
- acceptin interface- FilenameFilter
- Specified by:
- acceptin interface- IOFileFilter
- Parameters:
- dir- the directory to check (ignored)
- name- the file name (ignored)
- Returns:
- false
 
- 
acceptReturns false.- Specified by:
- acceptin interface- IOFileFilter
- Specified by:
- acceptin interface- PathFilter
- Parameters:
- file- the file to check (ignored)
- attributes- the path's basic attributes (may be null).
- Returns:
- false
- Since:
- 2.9.0
 
- 
andDescription copied from interface:IOFileFilterConstructs a new "and" filter with this filter.- Specified by:
- andin interface- IOFileFilter
- Parameters:
- fileFilter- the filter to "and".
- Returns:
- a new filter.
 
- 
negateDescription copied from interface:IOFileFilterConstructs a new "not" filter with this filter.- Specified by:
- negatein interface- IOFileFilter
- Returns:
- a new filter.
 
- 
orDescription copied from interface:IOFileFilterConstructs a new "or" filter with this filter.- Specified by:
- orin interface- IOFileFilter
- Parameters:
- fileFilter- the filter to "or".
- Returns:
- a new filter.
 
- 
toString
 
-