Initial revision
[gcc.git] / libjava / java / lang / Number.java
1 /* Copyright (C) 1998, 1999 Cygnus Solutions
2
3 This file is part of libgcj.
4
5 This software is copyrighted work licensed under the terms of the
6 Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
7 details. */
8
9 package java.lang;
10
11 import java.io.Serializable;
12
13 /**
14 * @author Warren Levy <warrenl@cygnus.com>
15 * @date September 2, 1998.
16 */
17 /* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
18 * "The Java Language Specification", ISBN 0-201-63451-1
19 * plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
20 * Status: Believed complete and correct.
21 */
22
23 public abstract class Number implements Serializable
24 {
25 public byte byteValue() // Became non-abstract in JDK 1.2
26 {
27 return (byte) intValue();
28 }
29
30 public abstract double doubleValue();
31 public abstract float floatValue();
32 public abstract int intValue();
33 public abstract long longValue();
34
35 public short shortValue() // Became non-abstract in JDK 1.2
36 {
37 return (short) intValue();
38 }
39 }