Statistics
| Revision:

svn-gvsig-desktop / trunk / libraries / libGDBMS / src / com / hardcode / gdbms / engine / values / ByteValue.java @ 1956

History | View | Annotate | Download (1.2 KB)

1
package com.hardcode.gdbms.engine.values;
2

    
3

    
4
/**
5
 *
6
 */
7
public class ByteValue extends NumericValue {
8
        private byte value;
9

    
10
        /**
11
         * Crea un nuevo ByteValue.
12
         *
13
         * @param value DOCUMENT ME!
14
         */
15
        ByteValue(byte value) {
16
                this.value = value;
17
        }
18

    
19
        /**
20
         * Crea un nuevo ByteValue.
21
         */
22
        ByteValue() {
23
        }
24

    
25
        /**
26
         * @see com.hardcode.gdbms.engine.values.NumericValue#byteValue()
27
         */
28
        public byte byteValue() {
29
                return value;
30
        }
31

    
32
        /**
33
         * @see com.hardcode.gdbms.engine.values.NumericValue#shortValue()
34
         */
35
        public short shortValue() {
36
                return (short) value;
37
        }
38

    
39
        /**
40
         * @see com.hardcode.gdbms.engine.values.NumericValue#intValue()
41
         */
42
        public int intValue() {
43
                return (int) value;
44
        }
45

    
46
        /**
47
         * @see com.hardcode.gdbms.engine.values.NumericValue#longValue()
48
         */
49
        public long longValue() {
50
                return (long) value;
51
        }
52

    
53
        /**
54
         * @see com.hardcode.gdbms.engine.values.NumericValue#floatValue()
55
         */
56
        public float floatValue() {
57
                return (float) value;
58
        }
59

    
60
        /**
61
         * @see com.hardcode.gdbms.engine.values.NumericValue#doubleValue()
62
         */
63
        public double doubleValue() {
64
                return (double) value;
65
        }
66

    
67
        /**
68
         * @see com.hardcode.gdbms.engine.values.NumericValue#getType()
69
         */
70
        public int getType() {
71
                return ValueFactory.BYTE;
72
        }
73
}