KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > sf > dozer > util > mapping > vo > TestReferenceFoo


1 /*
2  * Copyright 2005-2007 the original author or authors.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16 package net.sf.dozer.util.mapping.vo;
17
18
19 public class TestReferenceFoo extends BaseTestObject {
20   private String JavaDoc a;
21   private String JavaDoc b;
22   private String JavaDoc c;
23
24   public boolean equals(Object JavaDoc obj) {
25     TestReferenceFoo foo = (TestReferenceFoo) obj;
26     if (foo.getA().equals(this.a)) {
27       return true;
28     } else {
29       return false;
30     }
31   }
32
33   public int hashCode (){
34     return 'x';
35   }
36   public String JavaDoc getA() {
37     return a;
38   }
39
40   public void setA(String JavaDoc a) {
41     this.a = a;
42   }
43
44   public String JavaDoc getB() {
45     return b;
46   }
47
48   public void setB(String JavaDoc b) {
49     this.b = b;
50   }
51
52   public String JavaDoc getC() {
53     return c;
54   }
55
56   public void setC(String JavaDoc c) {
57     this.c = c;
58   }
59 }
60
Popular Tags