KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > sapia > util > xml > idefix > test > BasicTypes


1 package org.sapia.util.xml.idefix.test;
2
3 /**
4  *
5  *
6  * @author Jean-Cedric Desrochers
7  *
8  * <dl>
9  * <dt><b>Copyright:</b><dd>Copyright &#169; 2002-2003 <a HREF="http://www.sapia-oss.org">Sapia Open Source Software</a>. All Rights Reserved.</dd></dt>
10  * <dt><b>License:</b><dd>Read the license.txt file of the jar or visit the
11  * <a HREF="http://www.sapia-oss.org/license.html">license page</a> at the Sapia OSS web site</dd></dt>
12  * </dl>
13  */

14 public class BasicTypes {
15
16   public BasicTypes() {
17   }
18
19   public byte getPositiveByte() {
20     return Byte.MAX_VALUE;
21   }
22   public byte getNegativeByte() {
23     return Byte.MIN_VALUE;
24   }
25   public Byte JavaDoc getByteObject() {
26     return new Byte JavaDoc((byte) 95);
27   }
28
29   public short getPositiveShort() {
30     return Short.MAX_VALUE;
31   }
32   public short getNegativeShort() {
33     return Short.MIN_VALUE;
34   }
35   public Short JavaDoc getShortObject() {
36     return new Short JavaDoc((short) 1095);
37   }
38
39   public int getPositiveInt() {
40     return Integer.MAX_VALUE;
41   }
42   public int getNegativeInt() {
43     return Integer.MIN_VALUE;
44   }
45   public Integer JavaDoc getIntegerObject() {
46     return new Integer JavaDoc(188295);
47   }
48
49   public long getPostitiveLong() {
50     return Long.MAX_VALUE;
51   }
52   public long getNegativeLong() {
53     return Long.MIN_VALUE;
54   }
55   public Long JavaDoc getLongObject() {
56     return new Long JavaDoc(100000000095L);
57   }
58
59   public float getPositiveFloat() {
60     return Float.MAX_VALUE;
61   }
62   public float getNegativeFloat() {
63     return Float.MIN_VALUE;
64   }
65   public Float JavaDoc getFloatObject() {
66     return new Float JavaDoc(1243.95f);
67   }
68
69   public double getPositiveDouble() {
70     return Double.MAX_VALUE;
71   }
72   public double getNegativeDouble() {
73     return Double.MIN_VALUE;
74   }
75   public Double JavaDoc getDoubleObject() {
76     return new Double JavaDoc(10000000000243.95);
77   }
78
79   public boolean getBoolean() {
80     return true;
81   }
82   public Boolean JavaDoc getBooleanObject() {
83     return new Boolean JavaDoc(false);
84   }
85
86   public String JavaDoc getString() {
87     return "foo-bar";
88   }
89   public char getChar() {
90     return 'Z';
91   }
92 }
93
Popular Tags