Short.CompareTo(Short) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Compares two Short
objects numerically.
[Android.Runtime.Register("compareTo", "(Ljava/lang/Short;)I", "")]
public int CompareTo (Java.Lang.Short? anotherShort);
[<Android.Runtime.Register("compareTo", "(Ljava/lang/Short;)I", "")>]
member this.CompareTo : Java.Lang.Short -> int
Parameters
- anotherShort
- Short
the Short
to be compared.
Returns
the value 0
if this Short
is
equal to the argument Short
; a value less than
0
if this Short
is numerically less
than the argument Short
; and a value greater than
0
if this Short
is numerically
greater than the argument Short
(signed
comparison).
- Attributes
Exceptions
if object
is null.
Remarks
Compares two Short
objects numerically.
Added in 1.2.
Java documentation for java.lang.Short.compareTo(java.lang.Short)
.
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.