KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > springframework > beans > NumberTestBean


1 /*
2  * Copyright 2002-2005 the original author or authors.
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.springframework.beans;
18
19 import java.math.BigDecimal JavaDoc;
20 import java.math.BigInteger JavaDoc;
21
22 /**
23  * @author Juergen Hoeller
24  * @since 10.06.2003
25  */

26 public class NumberTestBean {
27
28     private short short1;
29     private Short JavaDoc short2;
30
31     private int int1;
32     private Integer JavaDoc int2;
33
34     private long long1;
35     private Long JavaDoc long2;
36
37     private BigInteger JavaDoc bigInteger;
38
39     private float float1;
40     private Float JavaDoc float2;
41
42     private double double1;
43     private Double JavaDoc double2;
44
45     private BigDecimal JavaDoc bigDecimal;
46
47     public short getShort1() {
48         return short1;
49     }
50
51     public void setShort1(short short1) {
52         this.short1 = short1;
53     }
54
55     public Short JavaDoc getShort2() {
56         return short2;
57     }
58
59     public void setShort2(Short JavaDoc short2) {
60         this.short2 = short2;
61     }
62
63     public int getInt1() {
64         return int1;
65     }
66
67     public void setInt1(int int1) {
68         this.int1 = int1;
69     }
70
71     public Integer JavaDoc getInt2() {
72         return int2;
73     }
74
75     public void setInt2(Integer JavaDoc int2) {
76         this.int2 = int2;
77     }
78
79     public long getLong1() {
80         return long1;
81     }
82
83     public void setLong1(long long1) {
84         this.long1 = long1;
85     }
86
87     public Long JavaDoc getLong2() {
88         return long2;
89     }
90
91     public void setLong2(Long JavaDoc long2) {
92         this.long2 = long2;
93     }
94
95     public BigInteger JavaDoc getBigInteger() {
96         return bigInteger;
97     }
98
99     public void setBigInteger(BigInteger JavaDoc bigInteger) {
100         this.bigInteger = bigInteger;
101     }
102
103     public float getFloat1() {
104         return float1;
105     }
106
107     public void setFloat1(float float1) {
108         this.float1 = float1;
109     }
110
111     public Float JavaDoc getFloat2() {
112         return float2;
113     }
114
115     public void setFloat2(Float JavaDoc float2) {
116         this.float2 = float2;
117     }
118
119     public double getDouble1() {
120         return double1;
121     }
122
123     public void setDouble1(double double1) {
124         this.double1 = double1;
125     }
126
127     public Double JavaDoc getDouble2() {
128         return double2;
129     }
130
131     public void setDouble2(Double JavaDoc double2) {
132         this.double2 = double2;
133     }
134
135     public BigDecimal JavaDoc getBigDecimal() {
136         return bigDecimal;
137     }
138
139     public void setBigDecimal(BigDecimal JavaDoc bigDecimal) {
140         this.bigDecimal = bigDecimal;
141     }
142
143 }
144
Popular Tags