T - type for the option valuepublic class Option<T> extends Object
| Modifier and Type | Method and Description |
|---|---|
Option<T> |
copy()
Creates copy of this option
|
T |
getValue()
Gets value for this option
|
<T> boolean |
hasSameNameAs(Option<T> option)
Checks if this option has same name as the provided option
|
void |
setValue(T value)
Sets the value for this option
|
public void setValue(T value)
value - the value to be set for this optionpublic T getValue()
public <T> boolean hasSameNameAs(Option<T> option)
T - type for the option valueoption - the option for which name equality has to be checkedCopyright © 2014 ThoughtWorks, Inc. Go Version: 16.2.1-175