Class Options


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

      Constructors 
      Constructor Description
      Options()
      Deprecated.
       
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      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 Detail

      • Options

        public Options()
        Deprecated.
    • Method Detail

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