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
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) IOBiFunction<Path, IOException, FileVisitResult> setVisitFileFailedFunction(IOBiFunction<Path, IOException, FileVisitResult> visitFileFailedFunction) Sets the function to call onSimplePathVisitor.visitFileFailed(Path, IOException).Methods inherited from class org.apache.commons.io.build.AbstractSupplier
asThisMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.commons.io.function.IOSupplier
asSupplier, get, getUnchecked
-
Field Details
-
visitFileFailedFunction
-
-
Constructor Details
-
AbstractBuilder
public AbstractBuilder()Constructs a new builder for subclasses.
-
-
Method Details
-
getVisitFileFailedFunction
IOBiFunction<Path,IOException, getVisitFileFailedFunction()FileVisitResult> -
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.
-