Class Question

java.lang.Object
jadex.micro.quiz.model.Question

public class Question extends Object
The question data class.
  • Field Details

    • question

      protected String question
      The question.
    • answers

      protected List<String> answers
      The answers.
    • solution

      protected int solution
      The solution.
  • Constructor Details

    • Question

      public Question()
      Create a new question.
    • Question

      public Question(String question, List<String> answers, int solution)
      Create a new question event.
  • Method Details

    • getQuestion

      public String getQuestion()
      Get the question.
      Returns:
      The question.
    • setQuestion

      public void setQuestion(String question)
      Set the question.
      Parameters:
      question - The question to set.
    • getAnswers

      public List<String> getAnswers()
      Get the answers.
      Returns:
      The answers.
    • setAnswers

      public void setAnswers(List<String> answers)
      Set the answers.
      Parameters:
      answers - The answers to set
    • getSolution

      public int getSolution()
      Get the solution.
      Returns:
      The solution
    • setSolution

      public void setSolution(int solution)
      Set the solution.
      Parameters:
      solution - The solution to set