Compartilhar via


ObjectStreamField.CompareTo(Object) Method

Definition

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.

Applies to