Creates a new When.paramstartTime The start of the event.paramendTime The end of the event. this.startTime = startTime; this.endTime = endTime;
this.startTime = startTime; this.endTime = endTime;
Returns the end time for the event.returnThe end time for the event. return endTime;
return endTime;
Returns the start time for the event.returnThe start time for the event. return startTime;
return startTime;
if (!StringUtils.isEmpty(startTime)) { sb.append("START TIME: " + startTime + "\n"); } if (!StringUtils.isEmpty(endTime)) { sb.append("END TIME: " + endTime + "\n"); }
StringBuffer sb = new StringBuffer(); toString(sb); return sb.toString();