01: package org.drools;
02:
03: /**
04: * ObjectFilter is used with WorkingMemories to filter out instances during Iteration
05: * @author mproctor
06: *
07: */
08: public interface ObjectFilter {
09:
10: /**
11: * Returning true means the Iterator accepts, and thus returns, the current Object.
12: * @param object
13: * @return
14: */
15: boolean accept(Object object);
16: }
|