net.sf.basedb.util.extensions.manager.filter
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$
Method Summary |
boolean |
evaluate(ExtensionsFile xtFile)
Evaluate if the given object should pass the filter or not. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
results
private final ProcessResults results
WasProcessedFilter
public WasProcessedFilter(ProcessResults results)
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 interface Filter<ExtensionsFile>
- Parameters:
xtFile
- The object to evaluate
- Returns:
- TRUE if the object passes the filter, FALSE otherwise