Byte.CompareTo(Byte) Method

Definition

Compares two Byte objects numerically.

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

Parameters

anotherByte
Byte

the Byte to be compared.

Returns

the value 0 if this Byte is equal to the argument Byte; a value less than 0 if this Byte is numerically less than the argument Byte; and a value greater than 0 if this Byte is numerically greater than the argument Byte (signed comparison).

Attributes

Remarks

Compares two Byte objects numerically.

Added in 1.2.

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

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