Package org.apache.commons.io.filefilter
Class WildcardFileFilter.Builder
java.lang.Object
org.apache.commons.io.build.AbstractSupplier<WildcardFileFilter,WildcardFileFilter.Builder>
org.apache.commons.io.filefilter.WildcardFileFilter.Builder
- All Implemented Interfaces:
IOSupplier<WildcardFileFilter>
- Enclosing class:
WildcardFileFilter
public static class WildcardFileFilter.Builder
extends AbstractSupplier<WildcardFileFilter,WildcardFileFilter.Builder>
Builds a new
WildcardFileFilter instance.- Since:
- 2.12.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget()Gets a result.Sets how to handle case sensitivity, null means case-sensitive.setWildcards(String... wildcards) Sets the wildcards to match, not null.setWildcards(List<String> wildcards) Sets the list of wildcards to match, not null.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, getUnchecked
-
Constructor Details
-
Builder
public Builder()Constructs a new builder ofWildcardFileFilter.
-
-
Method Details
-
get
Description copied from interface:IOSupplierGets a result.- Returns:
- a result.
- See Also:
-
setIoCase
Sets how to handle case sensitivity, null means case-sensitive.- Parameters:
ioCase- how to handle case sensitivity, null means case-sensitive.- Returns:
thisinstance.
-
setWildcards
Sets the list of wildcards to match, not null.- Parameters:
wildcards- the list of wildcards to match, not null.- Returns:
thisinstance.
-
setWildcards
Sets the wildcards to match, not null.- Parameters:
wildcards- the wildcards to match, not null.- Returns:
thisinstance.
-