compare abstract method
Result of comparing x
with y
. Returns an Int whose sign is:
- negative iff
x < y
- zero iff
x == y
- positive iff
x > y
Implementation
int compare(T x, T y);
Result of comparing x
with y
. Returns an Int whose sign is:
x < y
x == y
x > y
int compare(T x, T y);