1 /* Copyright (C) 1998, 1999 Cygnus Solutions
3 This file is part of libgcj.
5 This software is copyrighted work licensed under the terms of the
6 Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
11 import java
.io
.Serializable
;
14 * @author Warren Levy <warrenl@cygnus.com>
15 * @date September 2, 1998.
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.
23 public abstract class Number
implements Serializable
25 public byte byteValue() // Became non-abstract in JDK 1.2
27 return (byte) intValue();
30 public abstract double doubleValue();
31 public abstract float floatValue();
32 public abstract int intValue();
33 public abstract long longValue();
35 public short shortValue() // Became non-abstract in JDK 1.2
37 return (short) intValue();