@Test public void testEscaping() { GlobMatcher dotMatcher = new GlobMatcher("."); assertTrue(dotMatcher.test(".")); assertFalse(dotMatcher.test("a")); GlobMatcher dotStarMatcher = new GlobMatcher(".*"); assertTrue(dotStarMatcher.test(".abcd")); assertFalse(dotStarMatcher.test("abcd")); }
@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);  }