Android Guides | Samples

Java.Lang.Short Class

The wrapper for the primitive type short.

See Also: Short

Syntax

[Android.Runtime.Register("java/lang/Short", DoNotGenerateAcw=true)]
public sealed class Short : Number, IComparable, IDisposable

Remarks

The wrapper for the primitive type short.

See Also

[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.Short are listed below.

See Also: Number

Public Constructors

Constructs a new Short with the specified primitive short value.
Constructs a new Short from the specified string.

Public Fields

const
MaxValueInt16 (32767). Constant for the maximum short value, 215-1.
const
MinValueInt16 (-32768). Constant for the minimum short value, -215.
const
SizeInt32 (16). Constant for the number of bits needed to represent a short in two's complement form.

Public Properties

[read-only]
static
TypeClass. The Class object that represents the primitive type short.

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

static
Compare(Int16, Int16) : Int32
Compares two short values.
CompareTo(Short) : Int32
Compares this object to the specified short object to determine their relative order.
static
Decode(String) : Short
Parses the specified string and returns a Short instance if the string can be decoded into a short value.
override
DoubleValue() : Double
Returns this object's value as a double.
override
FloatValue() : Single
Returns this object's value as a float.
override
IntValue() : Int32
Returns this object's value as an int.
override
LongValue() : Int64
Returns this object's value as a long.
static
ParseShort(String) : Int16
Parses the specified string as a signed decimal short value.
static
ParseShort(String, Int32) : Int16
Parses the specified string as a signed short value using the specified radix.
static
ReverseBytes(Int16) : Int16
Reverses the bytes of the specified short.
static
ToString(Int16) : String
Returns a string containing a concise, human-readable description of the specified short value with radix 10.
static
ValueOf(Int16) : Short
Returns a Short instance for the specified short value.
static
ValueOf(String) : Short
Parses the specified string as a signed decimal short value.
static
ValueOf(String, Int32) : Short
Parses the specified string as a signed short value using the specified radix.

Public Operators

Explicitly Implemented Interface Members