1 /***
2 Copyright (C) 2005 The Java Community
3
4 This program is free software; you can redistribute it and/or modify it under
5 the terms of the GNU General Public License as published by the Free Software
6 Foundation; either version 2 of the License, or (at your option) any later
7 version.
8
9 This program is distributed in the hope that it will be useful, but WITHOUT
10 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11 FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
13 You should have received a copy of the GNU General Public License along with
14 this program; if not, write to the Free Software Foundation, Inc., 59 Temple
15 Place, Suite 330, Boston, MA 02111-1307 USA.
16
17 */
18 package org.bejug.javacareers.jobs.model;
19
20 import org.apache.commons.lang.builder.CompareToBuilder;
21 import org.apache.commons.lang.builder.EqualsBuilder;
22 import org.apache.commons.lang.builder.HashCodeBuilder;
23 import org.apache.commons.lang.builder.ToStringBuilder;
24
25
26 /***
27 * @author Bart Meyers (Last modified by $Author: shally $)
28 * @version $Revision: 1.3 $ - $Date: 2005/12/20 15:36:45 $
29 *
30 */
31 public class AcademicEducationOffer extends EducationOffer {
32
33 /***
34 * Default constructor.
35 */
36 public AcademicEducationOffer() {
37 super();
38 }
39
40 /***
41 * {@inheritDoc}
42 */
43 public boolean equals(Object o) {
44 if (!(o instanceof AcademicEducationOffer)) {
45 return false;
46 }
47 if (this == o) {
48 return true;
49 }
50
51 return new EqualsBuilder()
52 .appendSuper(super.equals(o))
53 .isEquals();
54 }
55
56
57 /***
58 * {@inheritDoc}
59 */
60 public int hashCode() {
61 return new HashCodeBuilder(123, 345)
62 .toHashCode();
63 }
64
65
66 /***
67 * {@inheritDoc}
68 */
69 public int compareTo(Object o) {
70
71 return new CompareToBuilder()
72 .appendSuper(super.compareTo(o))
73 .toComparison();
74 }
75
76
77 /***
78 * {@inheritDoc}
79 */
80 public String toString() {
81 return new ToStringBuilder(this)
82 .appendSuper(super.toString())
83 .toString();
84 }
85 }
86
87 /***
88 * $Log: AcademicEducationOffer.java,v $
89 * Revision 1.3 2005/12/20 15:36:45 shally
90 * CheckStyle and PMD changes.
91 *
92 * Revision 1.2 2005/08/31 12:15:09 bme_jcs
93 * refactoring and introduction of apache builders
94 *
95 * Revision 1.1 2005/08/26 07:58:26 ge0ffrey
96 * split up the sources in service, serviceimpl and webclient
97 *
98 * Revision 1.2 2005/06/09 08:18:46 bejug_cc
99 * Fix initial import
100 *
101 * Revision 1.2 2005/04/29 18:17:34 sja
102 * General cleanup (naming conv., javadoc and CVS tags)
103 *
104 * Revision 1.1 2005/04/29 05:59:53 bme
105 * first release
106 *
107 */