View Javadoc

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  public class EducationServiceOffer extends ServiceOffer {
31  
32      /***
33       * default constructor, needed by hibernate.
34       */
35      public EducationServiceOffer() {
36          super();
37      }
38      
39      /***
40       * {@inheritDoc}
41       */
42      public boolean equals(Object o) {
43      	if (!(o instanceof EducationServiceOffer)) {
44      	     return false;
45      	   }
46      	   if (this == o) {
47      	     return true;
48      	   }
49      	   //EducationServiceOffer eduOffer = (EducationServiceOffer) o;
50      	   return new EqualsBuilder()
51      	   		.appendSuper(super.equals(o))    	   		
52      	        .isEquals();
53      }
54      
55      
56      /***
57       * {@inheritDoc}
58       */
59      public int hashCode() {
60          return new HashCodeBuilder(69, 573)
61          	.toHashCode();
62      }
63      
64      
65      /***
66       * {@inheritDoc}
67       */
68      public int compareTo(Object o) {
69          EducationOffer eduOffer = (EducationOffer) o;
70          return new CompareToBuilder()
71          	.appendSuper(super.compareTo(eduOffer))
72          	.toComparison();
73      }
74      
75      /***
76       * {@inheritDoc}
77       */
78      public String toString() {
79      	return new ToStringBuilder(this)
80      		.appendSuper(super.toString())  		
81      		.toString();
82      }
83  }
84  /***
85   * $Log: EducationServiceOffer.java,v $
86   * Revision 1.3  2005/12/20 15:36:45  shally
87   * CheckStyle and PMD changes.
88   *
89   * Revision 1.2  2005/08/31 12:15:09  bme_jcs
90   * refactoring and introduction of apache builders
91   *
92   * Revision 1.1  2005/08/26 07:58:26  ge0ffrey
93   * split up the sources in service, serviceimpl and webclient
94   *
95   * Revision 1.2  2005/06/09 08:18:52  bejug_cc
96   * Fix initial import
97   *
98   * Revision 1.3  2005/04/29 18:17:34  sja
99   * General cleanup (naming conv., javadoc and CVS tags)
100  *
101  * Revision 1.2  2005/04/29 07:01:47  PSONG09
102  * update
103  * Revision 1.1 2005/04/25 08:04:41 bme
104  * First Release
105  *
106  */