1 7 package org.jboss.cache.tests.aop; 8 9 import java.io.Serializable ; 10 11 12 17 public class SerializedAddress implements Serializable 18 { 19 String street = null; 20 String city = null; 21 int zip = 0; 22 23 public String getStreet() 24 { 25 return street; 26 } 27 28 public void setStreet(String street) 29 { 30 this.street = street; 31 } 32 33 public String getCity() 34 { 35 return city; 36 } 37 38 public void setCity(String 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 toString() 54 { 55 return "street=" + getStreet() + ", city=" + getCity() + ", zip=" + getZip(); 56 } 57 58 } 62 | Popular Tags |