@Test public void testQuestionMark() { GlobMatcher matcher = new GlobMatcher("?oo"); assertTrue(matcher.test("foo")); assertTrue(matcher.test("boo")); assertFalse(matcher.test("waterloo")); }
@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);  }