public static class FileConfig.Builder extends Object
This class is a Builder to build a FileConfig
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 |
|---|---|
FileConfig |
build()
Build a new
FileConfig with the parameters set. |
FileConfig.Builder |
setName(String name)
Set the name of the file.
|
public FileConfig.Builder setName(String name)
Set the name of the file.
name - the name of the file.public FileConfig build()
Build a new FileConfig with the parameters set.
FileConfig.IllegalArgumentException - if name is null.Copyright © 2020 sw4j.org. All rights reserved.