compareTo method
- HijriDate other
override
Implementation
@override
int compareTo(HijriDate other) {
if (year != other.year) return year.compareTo(other.year);
if (month != other.month) return month.compareTo(other.month);
return day.compareTo(other.day);
}