KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jmanage > testapp > mbeans > PrimitiveDataTypeTest


1 /**
2  * Copyright 2004-2005 jManage.org
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 package org.jmanage.testapp.mbeans;
17
18 /**
19  * Created by IntelliJ IDEA.
20  * User: Administrator
21  * Date: Dec 23, 2004
22  * Time: 1:33:56 PM
23  * To change this template use Options | File Templates.
24  */

25 public class PrimitiveDataTypeTest implements PrimitiveDataTypeTestMBean{
26
27         private int i=9;
28         private short s=9;
29         private long l=9999;
30         private float f=9.9f;
31         private double d=9999.999;
32         private char c='a';
33         private boolean bo=true;
34         private boolean bo2=true;
35         private byte b=1;
36
37
38         public int getInt(){
39             return i;
40         }
41
42         public void setInt(int i){
43             this.i = i;
44         }
45
46         public short getShort(){
47             return s;
48         }
49
50         public void setShort(short s){
51             this.s = s;
52         }
53
54         public long getLong(){
55             return l;
56         }
57
58         public void setLong(long l){
59             this.l = l;
60         }
61
62         public float getFloat(){
63             return f;
64         }
65
66         public void setFloat(float f){
67             this.f = f;
68         }
69
70         public double getDouble(){
71             return d;
72         }
73
74         public void setDouble(double d){
75             this.d = d;
76         }
77
78         public char getChar(){
79             return c;
80         }
81
82         public void setChar(char c){
83             this.c = c;
84         }
85
86         public boolean getBoolean(){
87             return bo;
88         }
89
90         public void setBoolean(boolean bo){
91             this.bo = bo;
92         }
93
94         public boolean getBoolean2(){
95             return bo2;
96         }
97
98         public void setBoolean2(boolean bo){
99             this.bo2 = bo;
100         }
101
102         public byte getByte(){
103             return b;
104         }
105
106         public void setByte(byte b){
107             this.b = b;
108         }
109
110 }
111
Popular Tags