Package org.apache.commons.io.file
Class SimplePathVisitor.AbstractBuilder<T,B extends AbstractSupplier<T,B>>
java.lang.Object
org.apache.commons.io.build.AbstractSupplier<T,B>
org.apache.commons.io.file.SimplePathVisitor.AbstractBuilder<T,B>
- Type Parameters:
T
- The SimplePathVisitor type.B
- The builder type.
- All Implemented Interfaces:
IOSupplier<T>
- Direct Known Subclasses:
CountingPathVisitor.AbstractBuilder
- Enclosing class:
SimplePathVisitor
protected abstract static class SimplePathVisitor.AbstractBuilder<T,B extends AbstractSupplier<T,B>>
extends AbstractSupplier<T,B>
Abstracts builder for subclasses.
- Since:
- 2.19.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionsetVisitFileFailedFunction
(IOBiFunction<Path, IOException, FileVisitResult> visitFileFailedFunction) Sets the function to call onSimplePathVisitor.visitFileFailed(Path, IOException)
.Methods inherited from class org.apache.commons.io.build.AbstractSupplier
asThis
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.commons.io.function.IOSupplier
asSupplier, get, getUnchecked
-
Constructor Details
-
AbstractBuilder
public AbstractBuilder()Constructs a new builder for subclasses.
-
-
Method Details
-
setVisitFileFailedFunction
public B setVisitFileFailedFunction(IOBiFunction<Path, IOException, FileVisitResult> visitFileFailedFunction) Sets the function to call onSimplePathVisitor.visitFileFailed(Path, IOException)
.Defaults to
SimpleFileVisitor.visitFileFailed(Object, IOException)
on construction.- Parameters:
visitFileFailedFunction
- the function to call onSimplePathVisitor.visitFileFailed(Path, IOException)
.- Returns:
- this instance.
-