@Test public void testMixed() { GlobMatcher matcher = new GlobMatcher("java.?ang.*"); assertTrue(matcher.test("java.lang.String")); assertTrue(matcher.test("java.lang.Integer")); assertTrue(matcher.test("java.lang.reflect.Method")); assertFalse(matcher.test("java.util.List")); }
@Override public boolean test(String toMatch) { return pattern.matcher(toMatch).matches(); }
GlobMatcher implements Predicate<String> { @Override public boolean test(String toMatch) { return pattern.matcher(toMatch).matches(); } }
GlobMatcher implements Predicate<String> { @Override public boolean test(String toMatch) { return pattern.matcher(toMatch).matches(); } GlobMatcher(String globPattern); }
GlobMatcher implements Predicate<String> { @Override public boolean test(String toMatch) { return pattern.matcher(toMatch).matches(); } GlobMatcher(String globPattern); @Override boolean test(String toMatch); }
GlobMatcher implements Predicate<String> { @Override public boolean test(String toMatch) { return pattern.matcher(toMatch).matches(); } GlobMatcher(String globPattern); @Override boolean test(String toMatch);  }