Modifier and Type | Method and Description |
---|---|
T |
build()
Builds the
Options container |
static <C extends Options,O extends OptionBuilder<C>> |
newBuilder(Class<C> optionsClass)
Creates a new option container based on the provided
Options class. |
<X> OptionBuilder<T> |
option(Option<X> option,
X value)
Add a new configuration
Option . |
public static <C extends Options,O extends OptionBuilder<C>> O newBuilder(Class<C> optionsClass)
Creates a new option container based on the provided Options
class.
C
- Captured type of Options
O
- Captured type of OptionBuilder
optionsClass
- any Class
implementing Options
OptionBuilder
instance for the specified Options
classpublic <X> OptionBuilder<T> option(Option<X> option, X value)
Add a new configuration Option
.
X
- The captured type of the Option
option
- a Option
objectvalue
- The value of the Option
OptionBuilder
objectCopyright © 2016–2024. All rights reserved.