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 Details

  • Constructor Details

    • WasProcessedFilter

      public WasProcessedFilter(ProcessResults results)
  • Method Details

    • 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