1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24 package org.apache.maven.doxia.module.fml.model;
25
26
27
28
29
30
31
32
33 @SuppressWarnings( "all" )
34 public class Faq
35 implements java.io.Serializable
36 {
37
38
39
40
41
42
43
44
45
46
47 private String id;
48
49
50
51
52
53
54 private String question;
55
56
57
58
59
60
61 private String answer;
62
63
64
65
66
67
68
69
70
71
72
73
74 public boolean equals( Object other )
75 {
76 if ( this == other )
77 {
78 return true;
79 }
80
81 if ( !( other instanceof Faq ) )
82 {
83 return false;
84 }
85
86 Faq that = (Faq) other;
87 boolean result = true;
88
89 result = result && ( getId() == null ? that.getId() == null : getId().equals( that.getId() ) );
90 result = result && ( getQuestion() == null ? that.getQuestion() == null : getQuestion().equals( that.getQuestion() ) );
91 result = result && ( getAnswer() == null ? that.getAnswer() == null : getAnswer().equals( that.getAnswer() ) );
92
93 return result;
94 }
95
96
97
98
99
100
101 public String getAnswer()
102 {
103 return this.answer;
104 }
105
106
107
108
109
110
111 public String getId()
112 {
113 return this.id;
114 }
115
116
117
118
119
120
121 public String getQuestion()
122 {
123 return this.question;
124 }
125
126
127
128
129
130
131 public int hashCode()
132 {
133 int result = 17;
134
135 result = 37 * result + ( id != null ? id.hashCode() : 0 );
136 result = 37 * result + ( question != null ? question.hashCode() : 0 );
137 result = 37 * result + ( answer != null ? answer.hashCode() : 0 );
138
139 return result;
140 }
141
142
143
144
145
146
147 public void setAnswer( String answer )
148 {
149 this.answer = answer;
150 }
151
152
153
154
155
156
157 public void setId( String id )
158 {
159 this.id = id;
160 }
161
162
163
164
165
166
167 public void setQuestion( String question )
168 {
169 this.question = question;
170 }
171
172
173
174
175
176
177 public java.lang.String toString()
178 {
179 StringBuilder buf = new StringBuilder( 128 );
180
181 buf.append( "id = '" );
182 buf.append( getId() );
183 buf.append( "'" );
184 buf.append( "\n" );
185 buf.append( "question = '" );
186 buf.append( getQuestion() );
187 buf.append( "'" );
188 buf.append( "\n" );
189 buf.append( "answer = '" );
190 buf.append( getAnswer() );
191 buf.append( "'" );
192
193 return buf.toString();
194 }
195
196 }