@Test public void testAcceptNotFinal() throws Exception { Path path0 = new Path(output, "clusters-0"); Path path1 = new Path(output, "clusters-1"); path0.getFileSystem(configuration).createNewFile(path0); path1.getFileSystem(configuration).createNewFile(path1); PathFilter clustersFilter = new ClustersFilter(); assertTrue(clustersFilter.accept(path0)); assertTrue(clustersFilter.accept(path1)); }
@Override public boolean accept(Path path) { String pathString = path.toString(); return pathString.contains("/clusters-"); }
ClustersFilter implements PathFilter { @Override public boolean accept(Path path) { String pathString = path.toString(); return pathString.contains("/clusters-"); } }
ClustersFilter implements PathFilter { @Override public boolean accept(Path path) { String pathString = path.toString(); return pathString.contains("/clusters-"); }  }
ClustersFilter implements PathFilter { @Override public boolean accept(Path path) { String pathString = path.toString(); return pathString.contains("/clusters-"); }  @Override boolean accept(Path path); }
ClustersFilter implements PathFilter { @Override public boolean accept(Path path) { String pathString = path.toString(); return pathString.contains("/clusters-"); }  @Override boolean accept(Path path);  }