ObjectStreamField.CompareTo(Object) 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.
Compare this field with another ObjectStreamField
.
[Android.Runtime.Register("compareTo", "(Ljava/lang/Object;)I", "GetCompareTo_Ljava_lang_Object_Handler")]
public virtual int CompareTo (Java.Lang.Object? obj);
[<Android.Runtime.Register("compareTo", "(Ljava/lang/Object;)I", "GetCompareTo_Ljava_lang_Object_Handler")>]
abstract member CompareTo : Java.Lang.Object -> int
override this.CompareTo : Java.Lang.Object -> int
Parameters
- obj
- Object
Returns
- Attributes
Remarks
Compare this field with another ObjectStreamField
. Return -1 if this is smaller, 0 if equal, 1 if greater. Types that are primitives are "smaller" than object types. If equal, the field names are compared.
Java documentation for java.io.ObjectStreamField.compareTo(java.lang.Object)
.
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.