Class Option<T>
- java.lang.Object
-
- com.thoughtworks.go.plugin.api.config.Option<T>
-
- Type Parameters:
T- type for the option value
@Deprecated public class Option<T> extends java.lang.ObjectDeprecated.Option could be used to specify metadata for a Property.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Option<T>copy()Deprecated.Creates copy of this optionTgetValue()Deprecated.Gets value for this option<T> booleanhasSameNameAs(Option<T> option)Deprecated.Checks if this option has same name as the provided optionvoidsetValue(T value)Deprecated.Sets the value for this option
-
-
-
Constructor Detail
-
Option
public Option(java.lang.String name, T value)Deprecated.
-
-
Method Detail
-
setValue
public void setValue(T value)
Deprecated.Sets the value for this option- Parameters:
value- the value to be set for this option
-
getValue
public T getValue()
Deprecated.Gets value for this option- Returns:
- value for this option
-
hasSameNameAs
public <T> boolean hasSameNameAs(Option<T> option)
Deprecated.Checks if this option has same name as the provided option- Type Parameters:
T- type for the option value- Parameters:
option- the option for which name equality has to be checked- Returns:
- true if name matches
-
-