code: @Override
    public void setEndTime(Date endTime) {
  
      Date sTime = getStartTime();
      if (sTime != null && endTime != null && sTime.after(endTime)) {
        throw new IllegalArgumentException("End time cannot be before start time");
      }
  
      this.endTime = endTime;
    }
docs: Set the time at which the <code>SimpleTrigger</code> should quit repeating (and be
  automatically deleted).
  
  @exception IllegalArgumentException if endTime is before start time.