加载中...
The Wayback Machine - https://sup1a9wrlpyh5li9ro.vcoronado.top/web/20090223162248/http://developer.android.com:80/reference/java/lang/Number.html
public abstract class

Number

extends Object
implements Serializable
java.lang.Object
   ↳ java.lang.Number
Known Direct Subclasses

Class Overview

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

Summary

Public Constructors
Number()
Number constructor.
Public Methods
byte byteValue()
Returns the byte value which the receiver represents
abstract double doubleValue()
Returns the double value which the receiver represents
abstract float floatValue()
Returns the float value which the receiver represents
abstract int intValue()
Returns the int value which the receiver represents
abstract long longValue()
Returns the long value which the receiver represents
short shortValue()
Returns the short value which the receiver represents
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public Number ()

Number constructor. Included for spec compatability.

Public Methods

public byte byteValue ()

Returns the byte value which the receiver represents

Returns
  • byte the value of the receiver.

public abstract double doubleValue ()

Returns the double value which the receiver represents

Returns
  • double the value of the receiver.

public abstract float floatValue ()

Returns the float value which the receiver represents

Returns
  • float the value of the receiver.

public abstract int intValue ()

Returns the int value which the receiver represents

Returns
  • int the value of the receiver.

public abstract long longValue ()

Returns the long value which the receiver represents

Returns
  • long the value of the receiver.

public short shortValue ()

Returns the short value which the receiver represents

Returns
  • short the value of the receiver.