T - Type returned by process(String, File)public class SelectiveFileProcessor<T> extends java.lang.Object implements FileProcessor<T>
| Constructor and Description |
|---|
SelectiveFileProcessor(Predicate<? super java.lang.String> pathPredicate,
FileProcessor<T> delegate1,
FileProcessor<T> delegate2) |
| Modifier and Type | Method and Description |
|---|---|
T |
process(java.lang.String path,
java.io.File file)
Do 'something' with the given file.
|
java.lang.String |
toString() |
public SelectiveFileProcessor(Predicate<? super java.lang.String> pathPredicate, FileProcessor<T> delegate1, FileProcessor<T> delegate2)
@Nullable public T process(java.lang.String path, java.io.File file) throws java.io.IOException, java.lang.InterruptedException
FileProcessorprocess in interface FileProcessor<T>path - The string that characterizes the filejava.io.IOExceptionjava.lang.InterruptedExceptionpublic java.lang.String toString()
toString in class java.lang.Object