compare abstract method

int compare(
  1. T x,
  2. T y
)

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);