KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > cache > pojo > test > 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.cache.pojo.test;
8
9 import java.io.Serializable JavaDoc;
10
11
12 /**
13  * Test class for PojoCache.
14  *
15  * @version $Revision: 1.1 $
16  */

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