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