Skip to content
Snippets Groups Projects
Commit c8cf241c authored by Paul-Christian Volkmer's avatar Paul-Christian Volkmer
Browse files

Added average answers per question into statistics object

parent 5282cefc
Branches
Tags
No related merge requests found
...@@ -51,6 +51,13 @@ public class Statistics { ...@@ -51,6 +51,13 @@ public class Statistics {
this.loggedinUsers = loggedinUsers; this.loggedinUsers = loggedinUsers;
} }
public int getAverageAnswersPerQuestion() {
return getAnswers() / getQuestions();
}
public void setAverageAnswersPerQuestion(final int value) {
// NOP
}
@Override @Override
public int hashCode() { public int hashCode() {
return (this.getClass().getName() return (this.getClass().getName()
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment