smallGreaterCompare method

int smallGreaterCompare(
  1. TimeOfDay other
)

Implementation

int smallGreaterCompare(TimeOfDay other) {
  if (this.hour < other.hour) return -1;
  if (this.hour > other.hour) return 1;
  if (this.minute < other.minute) return -1;
  if (this.minute > other.minute) return 1;
  return 0;
}