Aracılığıyla paylaş


Long.Compare(Int64, Int64) Method

Definition

Compares two long values numerically.

[Android.Runtime.Register("compare", "(JJ)I", "")]
public static int Compare (long x, long y);
[<Android.Runtime.Register("compare", "(JJ)I", "")>]
static member Compare : int64 * int64 -> int

Parameters

x
Int64

the first long to compare

y
Int64

the second long to compare

Returns

the value 0 if x == y; a value less than 0 if x < y; and a value greater than 0 if x > y

Attributes

Remarks

Java documentation for java.lang.Long.compare(long, long).

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