@Test public void test_anyMatchesAsClassOrPackage() { assertTrue(ClassMatcher.anyMatchesAsClassOrPackage(Arrays.asList("hu.awm.MyClass"), Collections.singletonList("hu.awm"))); assertTrue(ClassMatcher.anyMatchesAsClassOrPackage(Arrays.asList("hu.awm.MyClass$InnerClass"), Collections.singletonList("hu.awm.MyClass"))); assertTrue(ClassMatcher.anyMatchesAsClassOrPackage(Arrays.asList("hu.awm.MyClass"), Collections.singletonList("hu.awm.MyClass"))); }
static boolean anyMatchesAsClassOrPackage(List<String> classFqns, List<String> fqns) { for (String classFqn : classFqns) { if (matchesAsClass(classFqn, fqns) || matchesAsInnerClass(classFqn, fqns) || matchesAsPackage(classFqn, fqns)) { return true; } } return false; }
ClassMatcher { static boolean anyMatchesAsClassOrPackage(List<String> classFqns, List<String> fqns) { for (String classFqn : classFqns) { if (matchesAsClass(classFqn, fqns) || matchesAsInnerClass(classFqn, fqns) || matchesAsPackage(classFqn, fqns)) { return true; } } return false; } }
ClassMatcher { static boolean anyMatchesAsClassOrPackage(List<String> classFqns, List<String> fqns) { for (String classFqn : classFqns) { if (matchesAsClass(classFqn, fqns) || matchesAsInnerClass(classFqn, fqns) || matchesAsPackage(classFqn, fqns)) { return true; } } return false; } private  ClassMatcher(); }
ClassMatcher { static boolean anyMatchesAsClassOrPackage(List<String> classFqns, List<String> fqns) { for (String classFqn : classFqns) { if (matchesAsClass(classFqn, fqns) || matchesAsInnerClass(classFqn, fqns) || matchesAsPackage(classFqn, fqns)) { return true; } } return false; } private  ClassMatcher();  }
ClassMatcher { static boolean anyMatchesAsClassOrPackage(List<String> classFqns, List<String> fqns) { for (String classFqn : classFqns) { if (matchesAsClass(classFqn, fqns) || matchesAsInnerClass(classFqn, fqns) || matchesAsPackage(classFqn, fqns)) { return true; } } return false; } private  ClassMatcher();   }