Android Guides | Samples

Java.Lang.Byte Class

The wrapper for the primitive type byte.

See Also: Byte

Syntax

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

Remarks

The wrapper for the primitive type byte.

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

See Also: Number

Public Constructors

Constructs a new Byte with the specified primitive byte value.
Constructs a new Byte from the specified string.

Public Fields

const
MaxValueSByte (127). The maximum Byte value, 27-1.
const
MinValueSByte (-128). The minimum Byte value, -27.
const
SizeInt32 (8). The number of bits needed to represent a Byte value in two's complement form.

Public Properties

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

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(SByte, SByte) : Int32
Compares two byte values.
CompareTo(Byte) : Int32
Compares this object to the specified byte object to determine their relative order.
static
Decode(String) : Byte
Parses the specified string and returns a Byte instance if the string can be decoded into a single byte 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
ParseByte(String) : SByte
Parses the specified string as a signed decimal byte value.
static
ParseByte(String, Int32) : SByte
Parses the specified string as a signed byte value using the specified radix.
static
ToString(SByte) : String
Returns a string containing a concise, human-readable description of the specified byte value.
static
ValueOf(SByte) : Byte
Returns a Byte instance for the specified byte value.
static
ValueOf(String) : Byte
Parses the specified string as a signed decimal byte value.
static
ValueOf(String, Int32) : Byte
Parses the specified string as a signed byte value using the specified radix.

Public Operators

Explicitly Implemented Interface Members