Class Options

java.lang.Object
com.thoughtworks.go.plugin.api.config.Options

@Deprecated public class Options extends Object
Deprecated.
Container for Option
  • Constructor Details

    • Options

      public Options()
      Deprecated.
  • Method Details

    • add

      public <T> void add(Option<T> option)
      Deprecated.
      Adds given option to container
      Type Parameters:
      T - option type
      Parameters:
      option - the instance of option to be added to container
    • set

      public <T> void set(Option<T> option, T value)
      Deprecated.
      Finds matching option by option name and sets specified value
      Type Parameters:
      T - the type of the option
      Parameters:
      option - the option used for matching
      value - the value to be set to matched option
    • findOption

      public <T> Option<T> findOption(Option<T> option)
      Deprecated.
      Finds matching option by option name
      Type Parameters:
      T - the type of the option
      Parameters:
      option - the option used for matching
      Returns:
      matched option
      Throws:
      RuntimeException - when matching option not found
    • hasOption

      public <T> boolean hasOption(Option<T> option)
      Deprecated.
    • addOrSet

      public <T> void addOrSet(Option<T> option, T value)
      Deprecated.
    • size

      public int size()
      Deprecated.