KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > cache > pojo > test > ArrayObject


1 /*
2  * JBoss, Home of Professional Open Source
3  *
4  * Distributable under LGPL license.
5  * See terms of license at gnu.org.
6  */

7
8 package org.jboss.cache.pojo.test;
9
10 /**
11  */

12 // We are using JDK1.5 annotation.
13
@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