1 7 8 package org.jboss.cache.pojo.test; 9 10 import java.io.Serializable ; 11 import java.util.ArrayList ; 12 import java.util.List ; 13 14 19 @org.jboss.cache.pojo.annotation.Replicable 20 public class SpecialSerializedAddress implements Serializable 21 { 22 String street = null; 23 String city = null; 24 int zip = 0; 25 26 List residents = new ArrayList (); 27 28 public List getResidents() 29 { 30 return residents; 31 } 32 33 public void setResidents(List residents) 34 { 35 this.residents = residents; 36 } 37 38 public void addResidents(String name) 39 { 40 residents.add(name); 41 } 42 43 public String getStreet() 44 { 45 return street; 46 } 47 48 public void setStreet(String street) 49 { 50 this.street = street; 51 } 52 53 public String getCity() 54 { 55 return city; 56 } 57 58 public void setCity(String city) 59 { 60 this.city = city; 61 } 62 63 public int getZip() 64 { 65 return zip; 66 } 67 68 public void setZip(int zip) 69 { 70 this.zip = zip; 71 } 72 73 public String toString() 74 { 75 return "street=" + getStreet() + ", city=" + getCity() + ", zip=" + getZip(); 76 } 77 78 } 82 | Popular Tags |