@Test public void testStar() { GlobMatcher matcher = new GlobMatcher("*ue"); assertTrue(matcher.test("rue")); assertTrue(matcher.test("blue")); assertFalse(matcher.test("bluer")); }
@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);  }