Class CountingPathVisitor.AbstractBuilder<T, B extends CountingPathVisitor.AbstractBuilder<T,B>>
java.lang.Object
org.apache.commons.io.build.AbstractSupplier<T,B>
org.apache.commons.io.file.SimplePathVisitor.AbstractBuilder<T,B>
org.apache.commons.io.file.CountingPathVisitor.AbstractBuilder<T,B>
- Type Parameters:
T- The CountingPathVisitor type.B- The AbstractBuilder type.
- All Implemented Interfaces:
IOSupplier<T>
- Direct Known Subclasses:
AccumulatorPathVisitor.Builder, CountingPathVisitor.Builder
- Enclosing class:
CountingPathVisitor
public abstract static class CountingPathVisitor.AbstractBuilder<T, B extends CountingPathVisitor.AbstractBuilder<T,B>>
extends SimplePathVisitor.AbstractBuilder<T,B>
Builds instances of
CountingPathVisitor.- Since:
- 2.19.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionsetDirectoryFilter(PathFilter directoryFilter) Sets how to filter directories.setDirectoryPostTransformer(UnaryOperator<Path> directoryTransformer) Sets how to transform directories, defaults toUnaryOperator.identity().setFileFilter(PathFilter fileFilter) Sets how to filter files.setPathCounters(Counters.PathCounters pathCounters) Sets how to count path visits.Methods inherited from class SimplePathVisitor.AbstractBuilder
setVisitFileFailedFunctionMethods inherited from class AbstractSupplier
asThisMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface IOSupplier
asSupplier, get, getUnchecked
-
Constructor Details
-
AbstractBuilder
public AbstractBuilder()Constructs a new builder for subclasses.
-
-
Method Details
-
setDirectoryFilter
Sets how to filter directories.- Parameters:
directoryFilter- how to filter files.- Returns:
thisinstance.
-
setDirectoryPostTransformer
Sets how to transform directories, defaults toUnaryOperator.identity().- Parameters:
directoryTransformer- how to filter files.- Returns:
thisinstance.
-
setFileFilter
Sets how to filter files.- Parameters:
fileFilter- how to filter files.- Returns:
thisinstance.
-
setPathCounters
Sets how to count path visits.- Parameters:
pathCounters- How to count path visits.- Returns:
thisinstance.
-