public Boolean isActive(Date date) { Calendar calendar = Calendar.getInstance(); calendar.setTime(date); CalendarDateComparator calendarDateComparator = new CalendarDateComparator(); Boolean result = Boolean.FALSE; if(calendarDateComparator.compare(getBeginDate(), calendar) <= 0) { if(getEnd() == null || calendarDateComparator.compare(getEndDate(), calendar) >= 0) { result = Boolean.TRUE; } } return result;
public Boolean isActive() { return isActive(new Date());
    public Boolean isActive(Date date) {    	Calendar calendar = Calendar.getInstance();    	calendar.setTime(date);    	CalendarDateComparator calendarDateComparator = new CalendarDateComparator();    	Boolean result = Boolean.FALSE;    	if(calendarDateComparator.compare(getBeginDate(), calendar) <= 0) {    		if(getEnd() == null || calendarDateComparator.compare(getEndDate(), calendar) >= 0) {    			result = Boolean.TRUE;			}    	}    	return result;    }