Android Guides | Samples

Java.Lang.Boolean Class

The wrapper for the primitive type boolean.

See Also: Boolean

Syntax

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

Remarks

The wrapper for the primitive type boolean.

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

See Also: Object

Public Constructors

Constructs a new Boolean with the specified primitive boolean value.
Constructs a new Boolean with its boolean value specified by string.

Public Properties

[read-only]
static
FalseBoolean. The Boolean object that represents the primitive value false.
[read-only]
static
TrueBoolean. The Boolean object that represents the primitive value true.
[read-only]
static
TypeClass. The Class object that represents the primitive type boolean.

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

BooleanValue() : Boolean
Gets the primitive value of this boolean, either true or false.
static
Compare(Boolean, Boolean) : Int32
Compares two boolean values.
CompareTo(Boolean) : Int32
Compares this object to the specified boolean object to determine their relative order.
static
GetBoolean(String) : Boolean
Returns the boolean value of the system property identified by string.
static
ParseBoolean(String) : Boolean
Parses the specified string as a boolean.
static
ToString(Boolean) : String
Converts the specified boolean to its string representation.
static
ValueOf(Boolean) : Boolean
Returns a Boolean instance for the specified boolean value.
static
ValueOf(String) : Boolean
Parses the specified string as a boolean value.

Public Operators

Explicitly Implemented Interface Members