KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > test > cache > test > standAloneAop > SerializedAddress


1 /*
2  * JBoss, the OpenSource J2EE webOS
3  *
4  * Distributable under LGPL license.
5  * See terms of license at gnu.org.
6  */

7 package org.jboss.test.cache.test.standAloneAop;
8
9 import java.io.Serializable JavaDoc;
10
11
12 /**
13  * Test class for TreeCacheAOP.
14  *
15  * @version $Revision: 1.1.2.1 $
16  */

17 public class SerializedAddress implements Serializable JavaDoc
18 {
19    static final long serialVersionUID = 3662001176634113834L;
20    String JavaDoc street = null;
21    String JavaDoc city = null;
22    int zip = 0;
23
24    public String JavaDoc getStreet()
25    {
26       return street;
27    }
28
29    public void setStreet(String JavaDoc street)
30    {
31       this.street = street;
32    }
33
34    public String JavaDoc getCity()
35    {
36       return city;
37    }
38
39    public void setCity(String JavaDoc city)
40    {
41       this.city = city;
42    }
43
44    public int getZip()
45    {
46       return zip;
47    }
48
49    public void setZip(int zip)
50    {
51       this.zip = zip;
52    }
53
54    public String JavaDoc toString()
55    {
56       return "street=" + getStreet() + ", city=" + getCity() + ", zip=" + getZip();
57    }
58
59 // public Object writeReplace() {
60
// return this;
61
// }
62
}
63
Popular Tags