View Javadoc

1   package net.sourceforge.pmd.util.filter;
2   
3   import java.io.File;
4   
5   /**
6    * Directory filter.
7    */
8   public class DirectoryFilter implements Filter<File> {
9   	public static final DirectoryFilter INSTANCE = new DirectoryFilter();
10  
11  	private DirectoryFilter() {
12  	}
13  
14  	public boolean filter(File file) {
15  		return file.isDirectory();
16  	}
17  }