java.lang
Class Number
java.lang.Object
java.lang.Number
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- BigDecimal, BigInteger, Byte, Double, Float, Integer, Long, NaturalNumber, Short
- public abstract class Number
- extends Object
- implements Serializable
JML's specification of java.lang.Number.
- Version:
- $Revision: 1.7 $
- Author:
- Brandon Shilling, Gary T. Leavens
Specifications inherited from class Object |
represents objectState <- org.jmlspecs.lang.JMLDataGroup.IT;
public represents _getClass <- \typeof(this); |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Number
public Number()
- Specifications: pure
-
public normal_behavior
assignable objectState;
intValue
public abstract int intValue()
- Specifications: pure
-
public normal_behavior
ensures (* \result is an int approximation to the value of this object *);
longValue
public abstract long longValue()
- Specifications: pure
-
public normal_behavior
ensures (* \result is an long approximation to the value of this object *);
floatValue
public abstract float floatValue()
- Specifications: pure
-
public normal_behavior
ensures (* \result is an float approximation to the value of this object *);
doubleValue
public abstract double doubleValue()
- Specifications: pure
-
public normal_behavior
ensures (* \result is an double approximation to the value of this object *);
byteValue
public byte byteValue()
- Specifications: pure
-
public normal_behavior
ensures (* \result is an byte approximation to the value of this object *);
shortValue
public short shortValue()
- Specifications: pure
-
public normal_behavior
ensures (* \result is an short approximation to the value of this object *);
JML is Copyright (C) 1998-2002 by Iowa State University and is distributed under the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This release depends on code from the MultiJava project and is based in part on the Kopi project Copyright (C) 1990-99 DMS Decision Management Systems Ges.m.b.H.