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