return (!summaryDate.equals(new YearMonthDay()) ? true : !getEndHourMinuteSecond().isAfter(time));
YearMonthDay currentDate = new YearMonthDay(); return ((summaryDate.isAfter(currentDate) || summaryDate == null) ? false : summaryDate .isBefore(currentDate) ? true : !getEndHourMinuteSecond().isAfter(time));
    public boolean isTimeValidToInsertSummary(HourMinuteSecond time, YearMonthDay summaryDate) {	return (!summaryDate.equals(new YearMonthDay()) ? true : !getEndHourMinuteSecond().isAfter(time));    }