Class OptionGroup

    • Method Detail

      • addOption

        public OptionGroup addOption​(Option option)
        Add the specified Option to this group.
        Parameters:
        option - the option to add to this group
        Returns:
        this option group with the option added
      • setRequired

        public void setRequired​(boolean required)
        Parameters:
        required - specifies if this group is required
      • isRequired

        public boolean isRequired()
        Returns whether this option group is required.
        Returns:
        whether this option group is required
      • toString

        public String toString()
        Returns the stringified version of this OptionGroup.
        Overrides:
        toString in class Object
        Returns:
        the stringified representation of this group