01: package tijmp.filter; 02: 03: /** A filter that only matches one class. 04: */ 05: public class ExactFilter implements Filter { 06: private Class<?> clz; 07: 08: public ExactFilter(Class<?> clz) { 09: this .clz = clz; 10: } 11: 12: public boolean accept(Class<?> c) { 13: return c == clz; 14: } 15: }