KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > test > compliance > query > support > NumberTest


1 /*
2  * JBoss, the OpenSource J2EE webOS
3  *
4  * Distributable under LGPL license.
5  * See terms of license at gnu.org.
6  */

7
8 package test.compliance.query.support;
9
10 public class NumberTest implements NumberTestMBean
11 {
12    private Number number;
13
14    public NumberTest()
15    {
16    }
17
18    public NumberTest(double number)
19    {
20       this.number = new Double(number);
21    }
22
23    public NumberTest(Double number)
24    {
25       this.number = number;
26    }
27
28    public NumberTest(float number)
29    {
30       this.number = new Float(number);
31    }
32
33    public NumberTest(Float number)
34    {
35       this.number = number;
36    }
37
38    public NumberTest(int number)
39    {
40       this.number = new Integer(number);
41    }
42
43    public NumberTest(Integer number)
44    {
45       this.number = number;
46    }
47
48    public NumberTest(long number)
49    {
50       this.number = new Long(number);
51    }
52
53    public NumberTest(Long number)
54    {
55       this.number = number;
56    }
57
58    public Number getNumber()
59    {
60       return number;
61    }
62 }
63
Popular Tags