Product SiteDocumentation Site

5.4.6. The Comparator Class

The Comparator class is the base class for implementing Comparator objects that can be used with the Array sortWith() (Section 5.3.6.35, “sortWith”) or stableSortWith() method (Section 5.3.6.37, “stableSortWith”). The compare() method implements some form of comparison that determines the relative ordering of two objects. Many Comparator implementations are specific to particular object types.

Table 5.33. ooRexx Comparator Class

Object
Comparator
 
compare

Note

The Comparator class also has available class methods that its metaclass, the Class class (Section 5.1.2, “The Class Class”), defines.
This class is defined as a mixin class.

5.4.6.1. Inherited Methods

Methods inherited from the Object class (Section 5.1.1, “The Object Class”).
new (Class Method)initsend
= \= == \== <> ><instanceMethodsendWith
|| '' (abuttal)' ' (blank)instanceMethodssetMethod
(Operator Methods)isAstart
classisInstanceOfstartWith
copyobjectNamestring
defaultNameobjectName=unsetMethod
hasMethodrequest 
identityHashrun