Class Options
java.lang.Object
com.thoughtworks.go.plugin.api.config.Options
Deprecated.
Container for
Option-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> voidDeprecated.Adds given option to container<T> voidDeprecated.<T> Option<T>findOption(Option<T> option) Deprecated.Finds matching option by option name<T> booleanDeprecated.<T> voidDeprecated.Finds matching option by option name and sets specified valueintsize()Deprecated.
-
Constructor Details
-
Options
public Options()Deprecated.
-
-
Method Details
-
add
Deprecated.Adds given option to container- Type Parameters:
T- option type- Parameters:
option- the instance of option to be added to container
-
set
Deprecated.Finds matching option by option name and sets specified value- Type Parameters:
T- the type of the option- Parameters:
option- the option used for matchingvalue- the value to be set to matched option
-
findOption
Deprecated.Finds matching option by option name- Type Parameters:
T- the type of the option- Parameters:
option- the option used for matching- Returns:
- matched option
- Throws:
RuntimeException- when matching option not found
-
hasOption
Deprecated. -
addOrSet
Deprecated. -
size
public int size()Deprecated.
-