compareTo method

int compareTo(
  1. TimeOfDay other
)

Implementation

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