@Deprecated
public class Options
extends java.lang.Object
Option| Constructor and Description |
|---|
Options()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
<T> void |
add(Option<T> option)
Deprecated.
Adds given option to container
|
<T> void |
addOrSet(Option<T> option,
T value)
Deprecated.
|
<T> Option<T> |
findOption(Option<T> option)
Deprecated.
Finds matching option by option name
|
<T> boolean |
hasOption(Option<T> option)
Deprecated.
|
<T> void |
set(Option<T> option,
T value)
Deprecated.
Finds matching option by option name and sets specified value
|
int |
size()
Deprecated.
|
public <T> void add(Option<T> option)
T - option typeoption - the instance of option to be added to containerpublic <T> void set(Option<T> option, T value)
T - the type of the optionoption - the option used for matchingvalue - the value to be set to matched optionpublic <T> Option<T> findOption(Option<T> option)
T - the type of the optionoption - the option used for matchingjava.lang.RuntimeException - when matching option not foundpublic <T> boolean hasOption(Option<T> option)
public <T> void addOrSet(Option<T> option, T value)
public int size()
Copyright © 2019 ThoughtWorks, Inc. GoCD Version: 19.2.0-8641