org.apache.commons.io.find
Class FindingFilter
java.lang.Object
org.apache.commons.io.find.FindingFilter
- All Implemented Interfaces:
- java.io.FileFilter
- public class FindingFilter
- extends java.lang.Object
- implements java.io.FileFilter
This is where most of the find functionality occurs. Nearly every option
to find is mapped to a FileFilter, which are then chained together inside
this class.
Method Summary |
boolean |
accept(java.io.File file)
|
private java.io.FileFilter |
createFilter(java.lang.String option,
java.lang.Object argument)
|
(package private) static boolean |
invert(boolean invert,
boolean answer)
|
boolean |
isDaystartConfigured()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
options
private java.util.Map options
filters
private java.util.List filters
daystart
private boolean daystart
FindingFilter
public FindingFilter(java.util.Map options)
createFilter
private java.io.FileFilter createFilter(java.lang.String option,
java.lang.Object argument)
accept
public boolean accept(java.io.File file)
- Specified by:
accept
in interface java.io.FileFilter
isDaystartConfigured
public boolean isDaystartConfigured()
invert
static boolean invert(boolean invert,
boolean answer)