1 7 8 package org.jboss.cache.pojo.test; 9 10 12 @org.jboss.cache.pojo.annotation.Replicable 14 public class ArrayObject 15 { 16 private Person[] team; 17 18 public ArrayObject() 19 { 20 team = new Person[10]; 21 } 22 23 public Person[] getTeam() 24 { 25 return team; 26 } 27 28 public void setTeam(Person[] t) 29 { 30 team = t; 31 } 32 33 public Person getPerson(int index) 34 { 35 return team[index]; 36 } 37 38 public void setPerson(int index, Person p) 39 { 40 team[index] = p; 41 } 42 } 43 | Popular Tags |