| 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 OptionsO - Captured type of OptionBuilderoptionsClass - any Class implementing OptionsOptionBuilder 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 Optionoption - a Option objectvalue - The value of the OptionOptionBuilder objectCopyright © 2016–2024. All rights reserved.