public int hashCode() {
   return startDate.hashCode() ^ endDate.hashCode();
 }