01: package tijmp.filter;
02:
03: /** A filter that matches if any of its two filter matches
04: */
05: public class OrFilter implements Filter {
06: private Filter f1, f2;
07:
08: public OrFilter(Filter f1, Filter f2) {
09: this .f1 = f1;
10: this .f2 = f2;
11: }
12:
13: public boolean accept(Class<?> c) {
14: return f1.accept(c) || f2.accept(c);
15: }
16: }
|