comparator abstract method
Returns a negative number if value1
is less than value2
, zero if they are
equal, and a positive number if value1
is greater than value2
.
Almost the same: value1 - value2
Implementation
int comparator(T value1, T value2);