Class OptionSupport

    • Constructor Detail

      • OptionSupport

        public OptionSupport()
    • Method Detail

      • getOptions

        public Map<String,​String> getOptions()
        Returns an unmodifiable map of all options.
        Returns:
        A map containing all options, not null.
      • setOption

        public void setOption​(String key,
                              String value)
        Sets an option.
        Parameters:
        key - the key of the option
        value - the value of the option.
      • getOption

        public String getOption​(String key)
        Returns the value of an option.
        Parameters:
        key - the key of the option.
        Returns:
        the value of the option, or null if not set.
      • clearOptions

        public void clearOptions()
        Clears all options.