compare static method

int compare(
  1. Integer a,
  2. Integer b
)

Implementation

static int compare(Integer a, Integer b) {
  if (a.value < b.value) return -1;
  if (a.value > b.value) return 1;
  return 0;
}