Package org.apache.commons.vfs2.filter
Interface ConditionalFileFilter
-
- All Known Implementing Classes:
AndFileFilter,OrFileFilter
public interface ConditionalFileFilter
Defines operations for conditional file filters.- Since:
- 2.4
- Author:
- This code was originally ported from Apache Commons IO File Filter
- See Also:
- "https://commons.apache.org/proper/commons-io/"
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddFileFilter(FileFilter fileFilter)Adds the specified file filter to the list of file filters at the end of the list.java.util.List<FileFilter>getFileFilters()Returns this conditional file filter's list of file filters.booleanremoveFileFilter(FileFilter fileFilter)Removes the specified file filter.voidsetFileFilters(java.util.List<FileFilter> fileFilters)Sets the list of file filters, replacing any previously configured file filters on this filter.
-
-
-
Method Detail
-
addFileFilter
void addFileFilter(FileFilter fileFilter)
Adds the specified file filter to the list of file filters at the end of the list.- Parameters:
fileFilter- the filter to be added
-
getFileFilters
java.util.List<FileFilter> getFileFilters()
Returns this conditional file filter's list of file filters.- Returns:
- the file filter list
-
removeFileFilter
boolean removeFileFilter(FileFilter fileFilter)
Removes the specified file filter.- Parameters:
fileFilter- filter to be removed- Returns:
trueif the filter was found in the list,falseotherwise
-
setFileFilters
void setFileFilters(java.util.List<FileFilter> fileFilters)
Sets the list of file filters, replacing any previously configured file filters on this filter.- Parameters:
fileFilters- the list of filters
-
-