Class Objective


  • public class Objective
    extends Object
    Represents an objective entry.
    • Constructor Detail

      • Objective

        public Objective​(String name,
                         String value,
                         String type)
        Creates a new Objective instance.
        Parameters:
        name - Name of the objective.
        value - Value of the objective.
        type - Type; integer or hearts
    • Method Detail

      • getName

        public String getName()
        Name of the objective.
      • getValue

        public String getValue()
        Value of the objective.
      • getType

        public String getType()
        Type; integer or hearts
      • setValue

        public void setValue​(String value)
        Value of the objective.
      • setType

        public void setType​(String type)
        Type; integer or hearts
      • canEqual

        protected boolean canEqual​(Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object