- All Implemented Interfaces:
com.google.common.base.Predicate<File>, Predicate<File>
public class FilterByExtensions
extends Object
implements com.google.common.base.Predicate<File>
Filters files by extension
-
Constructor Summary
Constructors
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.google.common.base.Predicate
equals, test
-
Constructor Details
-
FilterByExtensions
public FilterByExtensions(String[] extensions)
Default constructor
- Parameters:
extensions - Strings
-
Method Details
-
apply
public boolean apply(File file)
- Specified by:
apply in interface com.google.common.base.Predicate<File>