@Test public void testMatchesAtLeastOneName() { Assert.assertTrue(ObjectClassMatcher.matchesAtLeastOneName(new String[]{"other", "org.apache.TestClass"}, "TestClass")); Assert.assertFalse(ObjectClassMatcher.matchesAtLeastOneName(new String[]{"TestClass2"}, "TestClass")); }
static boolean matchesAtLeastOneName(String[] names, String pattern) { for (String objectClass : names) { if (matchesName(objectClass, pattern)) { return true; } } return false; }
ObjectClassMatcher { static boolean matchesAtLeastOneName(String[] names, String pattern) { for (String objectClass : names) { if (matchesName(objectClass, pattern)) { return true; } } return false; } }
ObjectClassMatcher { static boolean matchesAtLeastOneName(String[] names, String pattern) { for (String objectClass : names) { if (matchesName(objectClass, pattern)) { return true; } } return false; } private  ObjectClassMatcher(); }
ObjectClassMatcher { static boolean matchesAtLeastOneName(String[] names, String pattern) { for (String objectClass : names) { if (matchesName(objectClass, pattern)) { return true; } } return false; } private  ObjectClassMatcher();  }
ObjectClassMatcher { static boolean matchesAtLeastOneName(String[] names, String pattern) { for (String objectClass : names) { if (matchesName(objectClass, pattern)) { return true; } } return false; } private  ObjectClassMatcher();   }