Class Options
- java.lang.Object
-
- com.thoughtworks.go.plugin.api.config.Options
-
@Deprecated public class Options extends java.lang.ObjectDeprecated.Container forOption
-
-
Constructor Summary
Constructors Constructor Description Options()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description <T> voidadd(Option<T> option)Deprecated.Adds given option to container<T> voidaddOrSet(Option<T> option, T value)Deprecated.<T> Option<T>findOption(Option<T> option)Deprecated.Finds matching option by option name<T> booleanhasOption(Option<T> option)Deprecated.<T> voidset(Option<T> option, T value)Deprecated.Finds matching option by option name and sets specified valueintsize()Deprecated.
-
-
-
Method Detail
-
add
public <T> void add(Option<T> option)
Deprecated.Adds given option to container- Type Parameters:
T- option type- Parameters:
option- the instance of option to be added to container
-
set
public <T> void set(Option<T> option, T value)
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
public <T> Option<T> findOption(Option<T> option)
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:
java.lang.RuntimeException- when matching option not found
-
hasOption
public <T> boolean hasOption(Option<T> option)
Deprecated.
-
addOrSet
public <T> void addOrSet(Option<T> option, T value)
Deprecated.
-
size
public int size()
Deprecated.
-
-