compare abstract method
Compares two values of type T
for order.
Returns:
- A negative number if
a < b
0
ifa == b
- A positive number if
a > b
This method must be implemented by subclasses or factory constructors.
Implementation
int compare(T a, T b);