public static class OutputConfig.Builder extends Object
This class is a Builder to build a OutputConfig
programmatically. All methods to set the values are fluent to ease the building of a configuration.
This class is not thread save.
| Constructor and Description |
|---|
Builder()
Create a new
Builder. |
| Modifier and Type | Method and Description |
|---|---|
OutputConfig |
build()
Build a new
OutputConfig with the parameters set. |
OutputConfig.Builder |
setFile(FileConfig file)
Set the file of the output csv file.
|
OutputConfig.Builder |
setFolder(String folder)
Set the folder of the output files.
|
public OutputConfig.Builder setFolder(String folder)
Set the folder of the output files.
folder - the folder of the output files.public OutputConfig.Builder setFile(FileConfig file)
Set the file of the output csv file.
file - the file of the output csv file.public OutputConfig build()
Build a new OutputConfig with the parameters set.
OutputConfig.IllegalArgumentException - if either folder or file is null.Copyright © 2020 sw4j.org. All rights reserved.