Back to project page android-quiz-php.
The source code is released under:
Copyright (c) 2014, Fabricio Bedeschi All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are me...
If you think the Android project android-quiz-php listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.quiz.php.core; /*ww w . j a v a 2 s. co m*/ /** * Created by fabricio on 2/14/14. */ public class Alternative { private int id; private String alternative; private boolean isCorrect; private boolean isSelected; @Override public String toString() { return String.format("Value: %s, Correct: %s", getAlternative(), String.valueOf(isCorrect())); } public int getId() { return id; } public void setId(int id) { this.id = id; } public String getAlternative() { return alternative; } public void setAlternative(String value) { this.alternative = value; } public boolean isCorrect() { return isCorrect; } public void setCorrect(boolean isCorrect) { this.isCorrect = isCorrect; } public boolean isSelected() { return isSelected; } public void setSelected(boolean isSelected) { this.isSelected = isSelected; } }