English | Site Directory

Android - An Open Handset Alliance Project

java.lang
public abstract class

java.lang.Number

java.lang.Object
java.lang.Number Serializable

Number is the abstract superclass of the classes which represent numeric base types (i.e. all but Character, Boolean, and Void).

Known Direct Subclasses

Summary

Public Constructors

          Number()
Number constructor.

Public Methods

        byte  byteValue()
Answers the byte value which the receiver represents
abstract        double  doubleValue()
Answers the double value which the receiver represents
abstract        float  floatValue()
Answers the float value which the receiver represents
abstract        int  intValue()
Answers the int value which the receiver represents
abstract        long  longValue()
Answers the long value which the receiver represents
        short  shortValue()
Answers the short value which the receiver represents
Methods inherited from class java.lang.Object

Details

Public Constructors

public Number()

Number constructor. Included for spec compatability.

Public Methods

public byte byteValue()

Answers the byte value which the receiver represents

Returns

  • byte the value of the receiver.

public abstract double doubleValue()

Answers the double value which the receiver represents

Returns

  • double the value of the receiver.

public abstract float floatValue()

Answers the float value which the receiver represents

Returns

  • float the value of the receiver.

public abstract int intValue()

Answers the int value which the receiver represents

Returns

  • int the value of the receiver.

public abstract long longValue()

Answers the long value which the receiver represents

Returns

  • long the value of the receiver.

public short shortValue()

Answers the short value which the receiver represents

Returns

  • short the value of the receiver.
Build m5-rc15i - 10 Jun 2008 13:54