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 newWildcardFileFilterinstance.- Since:
- 2.12.0
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WildcardFileFilterget()Gets a result.WildcardFileFilter.BuildersetIoCase(IOCase ioCase)Sets how to handle case sensitivity, null means case-sensitive.WildcardFileFilter.BuildersetWildcards(java.lang.String... wildcards)Sets the wildcards to match, not null.WildcardFileFilter.BuildersetWildcards(java.util.List<java.lang.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, wait
-
Methods inherited from interface org.apache.commons.io.function.IOSupplier
asSupplier
-
-
-
-
Method Detail
-
get
public WildcardFileFilter get()
Description copied from interface:IOSupplierGets a result.- Returns:
- a result
-
setIoCase
public WildcardFileFilter.Builder setIoCase(IOCase ioCase)
Sets how to handle case sensitivity, null means case-sensitive.- Parameters:
ioCase- how to handle case sensitivity, null means case-sensitive.- Returns:
- this
-
setWildcards
public WildcardFileFilter.Builder setWildcards(java.util.List<java.lang.String> wildcards)
Sets the list of wildcards to match, not null.- Parameters:
wildcards- the list of wildcards to match, not null.- Returns:
- this
-
setWildcards
public WildcardFileFilter.Builder setWildcards(java.lang.String... wildcards)
Sets the wildcards to match, not null.- Parameters:
wildcards- the wildcards to match, not null.- Returns:
- this
-
-