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