Class Option

    • Constructor Detail

      • Option

        public Option()
    • Method Detail

      • getValue

        public String getValue()
        The value for this option.
        Returns:
        value
      • setValue

        public void setValue​(String value)
      • getLabel

        public String getLabel()
        The label for this option.
        Returns:
        label
      • setLabel

        public void setLabel​(String label)
      • isSelected

        public Boolean isSelected()
        Whether or not this option is selected.
        Returns:
        selected
      • setSelected

        public void setSelected​(Boolean selected)
      • getHits

        public Integer getHits()
        Tells how many hits there are for this option.
        Returns:
        hits
      • setHits

        public void setHits​(Integer hits)
      • addOptionsItem

        public Option addOptionsItem​(Option optionsItem)
      • getOptions

        public List<Option> getOptions()
        An option can act as a group and thus can itself own a list of options.
        Returns:
        options
      • setOptions

        public void setOptions​(List<Option> options)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object