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 Object
Deprecated.
Option could be used to specify metadata for a Property.
  • Constructor Details

    • Option

      public Option(String name, T value)
      Deprecated.
  • Method Details

    • 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
    • copy

      public Option<T> copy()
      Deprecated.
      Creates copy of this option
      Returns:
      copy of 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