operator == method

  1. @override
bool operator ==(
  1. Object that
)
override

Equals is based on year, month, day

Implementation

@override
bool operator ==(Object that) {
  if (that is HDate) {
    return year == that.year && month == that.month && day == that.day;
  } else {
    return false;
  }
}