Equals and hashcode methods were overrided in class TimeRange