Android Guides | Samples

Java.Lang.Number Class

The abstract superclass of the classes which represent numeric base types (that is Byte, Short, Integer, Long, Float, and Double.

See Also: Number

Syntax

[Android.Runtime.Register("java/lang/Number", DoNotGenerateAcw=true)]
public abstract class Number : Object, ISerializable, IDisposable

Remarks

The abstract superclass of the classes which represent numeric base types (that is Byte, Short, Integer, Long, Float, and Double.

[Android Documentation]

Requirements

Namespace: Java.Lang
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1

The members of Java.Lang.Number are listed below.

See Also: Object

Public Constructors

Empty default constructor.

Protected Constructors

A constructor used when creating managed representations of JNI objects; called by the runtime.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

ByteValue() : SByte
Returns this object's value as a byte.
abstract
DoubleValue() : Double
Returns this object's value as a double.
abstract
FloatValue() : Single
Returns this object's value as a float.
abstract
IntValue() : Int32
Returns this object's value as an int.
abstract
LongValue() : Int64
Returns this object's value as a long.
ShortValue() : Int16
Returns this object's value as a short.