Class WasProcessedFilter
- java.lang.Object
-
- net.sf.basedb.util.extensions.manager.filter.WasProcessedFilter
-
- All Implemented Interfaces:
Filter<ExtensionsFile>
public class WasProcessedFilter extends Object implements Filter<ExtensionsFile>
Filter implementation that passes all extension files that has been processed according to the information in the given ProcessResults object. Eg. if theProcessResults.getResults(ExtensionsFile)
returns null or an actual object. This filter is primarly inteded to be used together with theMarkAsProcessedProcessor
, but may have other uses as well.- Since:
- 3.0
- Author:
- Nicklas
- Last modified
- $Date$
-
-
Field Summary
Fields Modifier and Type Field Description private ProcessResults
results
-
Constructor Summary
Constructors Constructor Description WasProcessedFilter(ProcessResults results)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
evaluate(ExtensionsFile xtFile)
Evaluate if the given object should pass the filter or not.
-
-
-
Field Detail
-
results
private final ProcessResults results
-
-
Constructor Detail
-
WasProcessedFilter
public WasProcessedFilter(ProcessResults results)
-
-
Method Detail
-
evaluate
public boolean evaluate(ExtensionsFile xtFile)
Description copied from interface:Filter
Evaluate if the given object should pass the filter or not.- Specified by:
evaluate
in interfaceFilter<ExtensionsFile>
- Parameters:
xtFile
- The object to evaluate- Returns:
- TRUE if the object passes the filter, FALSE otherwise
-
-