01: /*
02: * Javolution - Java(TM) Solution for Real-Time and Embedded Systems
03: * Copyright (C) 2005 - Javolution (http://javolution.org/)
04: * All rights reserved.
05: *
06: * Permission to use, copy, modify, and distribute this software is
07: * freely granted, provided that this notice is preserved.
08: */
09: package j2me.lang;
10:
11: public abstract class Number implements j2me.io.Serializable {
12:
13: public abstract int intValue();
14:
15: public abstract long longValue();
16:
17: /*@JVM-1.1+@
18: public abstract float floatValue();
19:
20: public abstract double doubleValue();
21: */
22:
23: public byte byteValue() {
24: return (byte) intValue();
25: }
26:
27: public short shortValue() {
28: return (short) intValue();
29: }
30:
31: }
|