@Test public void testAccept() { DefaultExcludesFilenameFilter filter = new DefaultExcludesFilenameFilter(); assertTrue(filter.accept(null, "aaa")); assertFalse(filter.accept(null, "aaa~")); assertFalse(filter.accept(null, "#aaa#")); assertFalse(filter.accept(null, ".#aaa")); assertFalse(filter.accept(null, "%aaa%")); assertFalse(filter.accept(null, "._aaa")); assertFalse(filter.accept(null, "CVS")); assertFalse(filter.accept(null, ".cvsignore")); assertFalse(filter.accept(null, "SCCS")); assertFalse(filter.accept(null, "vssver.scc")); assertFalse(filter.accept(null, ".svn")); assertFalse(filter.accept(null, ".DS_Store")); }
public boolean accept(File dir, String name) { return !filterPattern.matcher(name).matches(); }
DefaultExcludesFilenameFilter implements FilenameFilter { public boolean accept(File dir, String name) { return !filterPattern.matcher(name).matches(); } }
DefaultExcludesFilenameFilter implements FilenameFilter { public boolean accept(File dir, String name) { return !filterPattern.matcher(name).matches(); }  }
DefaultExcludesFilenameFilter implements FilenameFilter { public boolean accept(File dir, String name) { return !filterPattern.matcher(name).matches(); }  static void resetFilterPattern(); static void setFilterRegex(String filterRegex); boolean accept(File dir, String name); }
DefaultExcludesFilenameFilter implements FilenameFilter { public boolean accept(File dir, String name) { return !filterPattern.matcher(name).matches(); }  static void resetFilterPattern(); static void setFilterRegex(String filterRegex); boolean accept(File dir, String name);  }