Android
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()
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
Methods inherited from class java.lang.Object

Details

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.
Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:56