KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tctest > FooObject


1 /*
2  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
3  */

4 package com.tctest;
5
6 import com.tc.object.TCObject;
7
8 import java.io.Serializable JavaDoc;
9
10 /**
11  * @author steve
12  */

13 public class FooObject implements Serializable JavaDoc {
14   private String JavaDoc one;
15   private long two;
16   private FooObject three;
17   public FooObject four;
18   private FooObject[] five;
19   public TCObject __tcObjecta;
20
21   public void test() {
22     synchronized (this) {
23       throw new Error JavaDoc();
24     }
25   }
26
27   public FooObject(Object JavaDoc t) {
28     super();
29   }
30
31   public FooObject() {
32     this(new Object JavaDoc());
33   }
34
35   public static class InnerClassTest {
36     public InnerClassTest(Object JavaDoc t) {
37       super();
38     }
39   }
40
41   public FooObject(String JavaDoc one, long two, FooObject three, FooObject four, FooObject[] five) {
42
43     this.one = one;
44     this.two = two;
45     this.three = three;
46     this.four = four;
47     this.five = five;
48   }
49
50   /**
51    * @return
52    */

53   public FooObject getFour() {
54     return four;
55   }
56
57   /**
58    * @return
59    */

60   public String JavaDoc getOne() {
61     return one;
62   }
63
64   /**
65    * @return
66    */

67   public FooObject getThree() {
68     return three;
69   }
70
71   /**
72    * @return
73    */

74   public long getTwo() {
75     return two;
76   }
77
78   /**
79    * @param object
80    */

81   public void setFour(FooObject object) {
82     four = object;
83   }
84
85   /**
86    * @param string
87    */

88   public void setOne(String JavaDoc string) {
89     one = string;
90   }
91
92   /**
93    * @param object
94    */

95   public void setThree(FooObject object) {
96     three = object;
97   }
98
99   /**
100    * @param l
101    */

102   public void setTwo(long l) {
103     two = l;
104   }
105
106   /**
107    * @return
108    */

109   public FooObject[] getFive() {
110     return five;
111   }
112
113   /**
114    * @param objects
115    */

116   public void setFive(FooObject[] objects) {
117     five = objects;
118   }
119
120 }
Popular Tags