Open Journal Systems
3.3.0
|
Public Member Functions | |
compareTo (Comparable $b) | |
Definition at line 24 of file Comparable.php.
Seboettg\Collection\Comparable::compareTo | ( | Comparable | $b | ) |
Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.
The implementor must ensure sgn(x.compareTo(y)) == -sgn(y.compareTo(x)) for all x and y.
Comparable | $b |
Implemented in Seboettg\Collection\Test\Element.
Referenced by Seboettg\Collection\Test\MyAscendingComparator\compare(), Seboettg\Collection\Test\MyDescendingComparator\compare(), Seboettg\Collection\Test\ArrayListTest\testCompareTo(), and Seboettg\Collection\Test\ArrayListTest\testShuffle().