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 the
ProcessResults.getResults(ExtensionsFile)
returns null or an actual object. This filter is primarly inteded to be used
together with the MarkAsProcessedProcessor
, 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
Modifier and Type Method Description boolean
evaluate(ExtensionsFile xtFile)
Evaluate if the given object should pass the filter or not.
-
Field Details
-
results
-
-
Constructor Details
-
WasProcessedFilter
-
-
Method Details
-
evaluate
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
-