Class AnsweredQuestion
java.lang.Object
com.ubs.backend.classes.database.questions.AnsweredQuestion
Dataclass to save an question with the today Usages
- Since:
- 17.07.2021
- Author:
- Sarah Ambi, Tim Irmler
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate longthe id of this class(package private) booleanif the answer of this question is hidden, this question must be hidden tooprivate StringThe question itself -
Constructor Summary
ConstructorsConstructorDescriptionno-args constructorAnsweredQuestion(String question, boolean isHidden)default constructor -
Method Summary
Modifier and TypeMethodDescriptionlongbooleanisHidden()voidsetAnsweredQuestionID(long answeredQuestionID)voidsetHidden(boolean hidden)voidsetQuestion(String question)toString()
-
Field Details
-
answeredQuestionID
private long answeredQuestionIDthe id of this class- Since:
- 17.07.2021
-
question
The question itself- Since:
- 17.07.2021
-
isHidden
boolean isHiddenif the answer of this question is hidden, this question must be hidden too- Since:
- 17.07.2021
-
-
Constructor Details
-
AnsweredQuestion
public AnsweredQuestion()no-args constructor- Since:
- 17.07.2021
-
AnsweredQuestion
default constructor- Parameters:
question-isHidden-- Since:
- 17.07.2021
-
-
Method Details
-
toString
-
getAnsweredQuestionID
public long getAnsweredQuestionID()- Returns:
- the ID of the answered question
- Since:
- 17.07.2021
-
setAnsweredQuestionID
public void setAnsweredQuestionID(long answeredQuestionID)- Parameters:
answeredQuestionID- the new ID of this answered question- Since:
- 17.07.2021
-
getQuestion
- Returns:
- the answered question
- Since:
- 17.07.2021
-
setQuestion
- Parameters:
question- new question for this answered question- Since:
- 17.07.2021
-
isHidden
public boolean isHidden()- Returns:
- is answered question hidden
- Since:
- 17.07.2021
-
setHidden
public void setHidden(boolean hidden)- Parameters:
hidden- is answered question hidden- Since:
- 17.07.2021
-