Class RSToStringComparator

Description

A Comparator for comparing objects by the return values of their toString methods.

Located in /code/framework/RSArrayUtil/RSArrayUtil.php (line 514)

RSComparator
   |
   --RSToStringComparator
Method Summary
void compare (mixed $o1, mixed $o2)
Methods
compare (line 517)

Returns 0 if both objects implement the method toString and the return values of both methods is equal (==). Otherwise -1 is returned.

void compare (mixed $o1, mixed $o2)

Redefinition of:
RSComparator::compare()
Returns 0 if objects passed as first and second argument are equal. They have to implement the method hashCode.

Inherited Methods

Inherited From RSComparator

RSComparator::compare()

Documentation generated on Mon, 8 Dec 2003 13:10:39 +0100 by phpDocumentor 1.2.3