@Override
 public CalendarData clone() {
   CalendarData obj = new CalendarData(date);
   obj.menstruation = menstruation;
   obj.sex = sex;
   obj.tookPill = tookPill;
   obj.note = note;
   return obj;
 }
  @Override
  public boolean equals(Object obj) {
    if (obj == this) {
      return true;
    }

    if (obj == null || obj.getClass() != getClass()) {
      return false;
    }

    CalendarData value = (CalendarData) obj;
    return menstruation == value.menstruation
        && sex == value.sex
        && tookPill == value.tookPill
        && date.equals(value.date)
        && (getNote().equals(value.getNote()));
  }