Boolean.CompareTo(Boolean) Method

Definition

Compares this Boolean instance with another.

[Android.Runtime.Register("compareTo", "(Ljava/lang/Boolean;)I", "")]
public int CompareTo (Java.Lang.Boolean b);
[<Android.Runtime.Register("compareTo", "(Ljava/lang/Boolean;)I", "")>]
member this.CompareTo : Java.Lang.Boolean -> int

Parameters

b
Boolean

the Boolean instance to be compared

Returns

zero if this object represents the same boolean value as the argument; a positive value if this object represents true and the argument represents false; and a negative value if this object represents false and the argument represents true

Attributes

Remarks

Compares this Boolean instance with another.

Added in 1.5.

Java documentation for java.lang.Boolean.compareTo(java.lang.Boolean).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

See also