code: public void setEnd(Date endDate) {
  
          if ((null == endDate) || getStart().after(endDate)) {
              m_explicitEnd = null;
          } else {
              m_explicitEnd = endDate;
          }
      }
docs: Explicitly set the end time of the event.
  
  If the provided date is <code>null</code> or a date before the start date, the end date defaults to the start date.
  
  @param endDate the end time of the event.