/** * Match all classes that <i>all</i> of the given ClassFilters match. * @param classFilters the ClassFilters to match * @return a distinct ClassFilter that matches all classes that both * of the given ClassFilter match */ public static ClassFilter intersection(ClassFilter[] classFilters) { Assert.notEmpty(classFilters, "ClassFilter array must not be empty"); return new IntersectionClassFilter(classFilters); }
public static ClassFilter intersection(ClassFilter a, ClassFilter b) { return new IntersectionClassFilter(new ClassFilter[] { a, b } ); }
/** * Match all classes that <i>both</i> of the given ClassFilters match. * @param cf1 the first ClassFilter * @param cf2 the second ClassFilter * @return a distinct ClassFilter that matches all classes that both * of the given ClassFilter match */ public static ClassFilter intersection(ClassFilter cf1, ClassFilter cf2) { Assert.notNull(cf1, "First ClassFilter must not be null"); Assert.notNull(cf2, "Second ClassFilter must not be null"); return new IntersectionClassFilter(new ClassFilter[] {cf1, cf2}); }
/** * Match all classes that <i>all</i> of the given ClassFilters match. * @param classFilters the ClassFilters to match * @return a distinct ClassFilter that matches all classes that both * of the given ClassFilter match */ public static ClassFilter intersection(ClassFilter[] classFilters) { Assert.notEmpty(classFilters, "ClassFilter array must not be empty"); return new IntersectionClassFilter(classFilters); }
/** * Match all classes that <i>all</i> of the given ClassFilters match. * @param classFilters the ClassFilters to match * @return a distinct ClassFilter that matches all classes that both * of the given ClassFilter match */ public static ClassFilter intersection(ClassFilter[] classFilters) { Assert.notEmpty(classFilters, "ClassFilter array must not be empty"); return new IntersectionClassFilter(classFilters); }
/** * Match all classes that <i>both</i> of the given ClassFilters match. * @param cf1 the first ClassFilter * @param cf2 the second ClassFilter * @return a distinct ClassFilter that matches all classes that both * of the given ClassFilter match */ public static ClassFilter intersection(ClassFilter cf1, ClassFilter cf2) { Assert.notNull(cf1, "First ClassFilter must not be null"); Assert.notNull(cf2, "Second ClassFilter must not be null"); return new IntersectionClassFilter(new ClassFilter[] {cf1, cf2}); }
/** * Match all classes that <i>both</i> of the given ClassFilters match. * @param cf1 the first ClassFilter * @param cf2 the second ClassFilter * @return a distinct ClassFilter that matches all classes that both * of the given ClassFilter match */ public static ClassFilter intersection(ClassFilter cf1, ClassFilter cf2) { Assert.notNull(cf1, "First ClassFilter must not be null"); Assert.notNull(cf2, "Second ClassFilter must not be null"); return new IntersectionClassFilter(new ClassFilter[] {cf1, cf2}); }