1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.apache.jdo.impl.model.java;
18
19 /***
20 * A FloatingPointType instance represents a floating point type as defined
21 * in the Java language. There are two floating point types:
22 * <code>float</code> and <code>double</code>.
23 * <p>
24 * Class PredefinedType provides public static final variables referring
25 * to the JavaType representation for floating point types.
26 *
27 * @see PredefinedType#floatType
28 * @see PredefinedType#doubleType
29 *
30 * @author Michael Bouschen
31 * @since JDO 1.0.1
32 */
33 public class FloatingPointType
34 extends PrimitiveType
35 {
36 /*** Constructor. */
37 public FloatingPointType(Class clazz)
38 {
39 super(clazz);
40 }
41
42 /***
43 * Returns <code>true</code> if this JavaType represents a floating
44 * point type.
45 * @return <code>true</code> if this JavaType represents a floating
46 * point type; <code>false</code> otherwise.
47 */
48 public boolean isFloatingPoint()
49 {
50 return true;
51 }
52
53 /***
54 * Returns <code>true</code> if this JavaType represents an orderable
55 * type as specified by JDO.
56 * @return <code>true</code> if this JavaType represents an orderable
57 * type; <code>false</code> otherwise.
58 */
59 public boolean isOrderable()
60 {
61 return true;
62 }
63 }