Interface ControlSettings<T extends ControlSettings<T>>

    • Method Detail

      • addOption

        T addOption​(java.lang.String optionName,
                    java.lang.Object optionValues)
        Adds new option with the specified value(s). If the given value is null, the option is removed.
        Parameters:
        optionName - Option name
        optionValues - Option value(s)
        Returns:
        a reference to this object - used to chain calls
      • getOption

        <V> V getOption​(java.lang.String optionName)
        Returns the value of the specified option.
        Parameters:
        optionName - Option name
        Returns:
        Option value
      • removeOption

        T removeOption​(java.lang.String optionName)
        Removes the specified option.
        Parameters:
        optionName - Option name
        Returns:
        a reference to this object - used to chain calls
      • getOptionNames

        java.util.Collection<java.lang.String> getOptionNames()
        Returns the names of defined options for the current ControlSettings.
        Returns:
        Collection of String representing the option names
      • merge

        void merge​(ControlSettings<?> settings)
        Merge the current ControlSettings options with the options of specified ControlSettings.
        Parameters:
        settings - ControlSettings to be merged with the current ControlSettings
      • clone

        T clone()
         throws java.lang.CloneNotSupportedException
        Clone the current ControlSettings.
        Returns:
        the new cloned ControlSettings
        Throws:
        java.lang.CloneNotSupportedException