Collator.IComparator.Compare(Object, 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.
Compares its two arguments for order.
int IComparator.Compare(Java.Lang.Object? o1, Java.Lang.Object? o2);
abstract member Java.Util.IComparator.Compare : Java.Lang.Object * Java.Lang.Object -> int
override this.Java.Util.IComparator.Compare : Java.Lang.Object * Java.Lang.Object -> int
Parameters
- o1
- Object
the first String object to be compared.
- o2
- Object
the second String object to be compared.
Returns
a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.
Implements
Remarks
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.