KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > commons > math > util > TestBean


1 /*
2  * Copyright 2003-2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16
17 package org.apache.commons.math.util;
18
19 /**
20  * @version $Revision$ $Date: 2005-02-26 05:11:52 -0800 (Sat, 26 Feb 2005) $
21  */

22 public class TestBean {
23     private Double JavaDoc x = new Double JavaDoc(1.0);
24     
25     private String JavaDoc y = "1.0";
26     
27     private Double JavaDoc z = new Double JavaDoc(2.0);
28     
29     /**
30      *
31      */

32     public Double JavaDoc getX() {
33         return x;
34     }
35
36     /**
37      *
38      */

39     public String JavaDoc getY() {
40         return y;
41     }
42
43     /**
44      *
45      */

46     public void setX(Double JavaDoc double1) {
47         x = double1;
48     }
49
50     /**
51      *
52      */

53     public void setY(String JavaDoc string) {
54         y = string;
55     }
56     
57     /**
58      *
59      */

60     public Double JavaDoc getZ() {
61         throw new RuntimeException JavaDoc();
62     }
63
64     /**
65      *
66      */

67     public void setZ(Double JavaDoc double1) {
68         z = double1;
69     }
70
71 }
72
Popular Tags