📄 testresult.java
字号:
package eols.bean.test;
import java.io.*;
/**
* <p>Title: Test result of a specific user</p>
* <p>Description: A wrapper class for test result </p>
* <p>Copyright: Copyright (c) 2007</p>
* <p>Company: </p>
* @author Fasheng Qiu
* @version 1.0
*/
public class TestResult
implements Serializable {
private String userID = null; // The user took the test
private long id = -1; // The test id
private long questionID = -1; // The id of the tested question
private String yourA = null; // The answer of the user
private boolean correct = false; // Whether it is answered correctly
private String testDate = null; // Date of the test
// Used internally
private Question question = null;
private void readObject(ObjectInputStream ois) throws
ClassNotFoundException, IOException {
ois.defaultReadObject();
}
private void writeObject(ObjectOutputStream oos) throws IOException {
oos.defaultWriteObject();
}
public boolean isCorrect() {
return correct;
}
public long getId() {
return id;
}
public long getQuestionID() {
return questionID;
}
public String getUserID() {
return userID;
}
public String getYourA() {
return yourA;
}
public void setYourA(String yourA) {
this.yourA = yourA;
}
public void setUserID(String userID) {
this.userID = userID;
}
public void setQuestionID(long questionID) {
this.questionID = questionID;
}
public void setId(long id) {
this.id = id;
}
public void setCorrect(boolean correct) {
this.correct = correct;
}
public String getTestDate() {
return testDate;
}
public void setTestDate(String testDate) {
this.testDate = testDate;
}
public Question getQuestion() {
return question;
}
public void setQuestion(Question question) {
this.question = question;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -