-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathAnswerPojo.java
More file actions
96 lines (81 loc) · 2.23 KB
/
AnswerPojo.java
File metadata and controls
96 lines (81 loc) · 2.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package techquiz.dto;
import java.util.Objects;
/**
*
* @author devanshi
*/
public class AnswerPojo {
private String examID;
private String subject;
private int qno;
private String answer;
private String correctAnswer;
@Override
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (obj == null) {
return false;
}
if (getClass() != obj.getClass()) {
return false;
}
final AnswerPojo other = (AnswerPojo) obj;
if (this.qno != other.qno) {
return false;
}
if (!Objects.equals(this.examID, other.examID)) {
return false;
}
if (!Objects.equals(this.subject, other.subject)) {
return false;
}
if (!Objects.equals(this.answer, other.answer)) {
return false;
}
if (!Objects.equals(this.correctAnswer, other.correctAnswer)) {
return false;
}
return true;
}
@Override
public String toString() {
return "AnswerPojo{" + "examID=" + examID + ", subject=" + subject + ", qno=" + qno + ", answer=" + answer + ", correctAnswer=" + correctAnswer + '}';
}
public String getExamID() {
return examID;
}
public void setExamID(String examID) {
this.examID = examID;
}
public String getSubject() {
return subject;
}
public void setSubject(String subject) {
this.subject = subject;
}
public int getQno() {
return qno;
}
public void setQno(int qno) {
this.qno = qno;
}
public String getAnswer() {
return answer;
}
public void setAnswer(String answer) {
this.answer = answer;
}
public String getCorrectAnswer() {
return correctAnswer;
}
public void setCorrectAnswer(String correctAnswer) {
this.correctAnswer = correctAnswer;
}
}