| Constructor and Description |
|---|
Options() |
| Modifier and Type | Method and Description |
|---|---|
<T> void |
add(Option<T> option)
Adds given option to container
|
<T> void |
addOrSet(Option<T> option,
T value) |
<T> Option<T> |
findOption(Option<T> option)
Finds matching option by option name
|
<T> boolean |
hasOption(Option<T> option) |
<T> void |
set(Option<T> option,
T value)
Finds matching option by option name and sets specified value
|
int |
size() |
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 matchingRuntimeException - when matching option not foundpublic <T> boolean hasOption(Option<T> option)
public <T> void addOrSet(Option<T> option, T value)
public int size()
Copyright © 2014 ThoughtWorks, Inc. Go Version: 16.2.1-175