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