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 java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.commons.io.function.IOSupplier
asSupplier
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
get
Description copied from interface:IOSupplierGets a result.- Returns:
- a result
-
setIoCase
Sets how to handle case sensitivity, null means case-sensitive.- Parameters:
ioCase- how to handle case sensitivity, null means case-sensitive.- Returns:
- this
-
setWildcards
Sets the list of wildcards to match, not null.- Parameters:
wildcards- the list of wildcards to match, not null.- Returns:
- this
-
setWildcards
Sets the wildcards to match, not null.- Parameters:
wildcards- the wildcards to match, not null.- Returns:
- this
-