Class Options

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

@Deprecated
public class Options
extends java.lang.Object
Deprecated.
Container for Option
  • Constructor Summary

    Constructors
    Constructor Description
    Options()
    Deprecated.
     
  • Method Summary

    Modifier and Type Method Description
    <T> void add​(Option<T> option)
    Deprecated.
    Adds given option to container
    <T> void addOrSet​(Option<T> option, T value)
    Deprecated.
     
    <T> Option<T> findOption​(Option<T> option)
    Deprecated.
    Finds matching option by option name
    <T> boolean hasOption​(Option<T> option)
    Deprecated.
     
    <T> void set​(Option<T> option, T value)
    Deprecated.
    Finds matching option by option name and sets specified value
    int size()
    Deprecated.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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:
      java.lang.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.