org.apache.commons.io.find
Class FindingFilter

java.lang.Object
  extended byorg.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.


Field Summary
private  boolean daystart
           
private  java.util.List filters
           
private  java.util.Map options
           
 
Constructor Summary
FindingFilter(java.util.Map options)
           
 
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
 

Field Detail

options

private java.util.Map options

filters

private java.util.List filters

daystart

private boolean daystart
Constructor Detail

FindingFilter

public FindingFilter(java.util.Map options)
Method Detail

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)