Package org.fenixedu.academic.dto.comparators

Examples of org.fenixedu.academic.dto.comparators.CalendarDateComparator.compare()


    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 (getEndDate() == null || calendarDateComparator.compare(getEndDate(), calendar) >= 0) {
                result = Boolean.TRUE;
            }
        }
        return result;
View Full Code Here


        Calendar calendar = Calendar.getInstance();
        calendar.setTime(date);
        CalendarDateComparator calendarDateComparator = new CalendarDateComparator();
        Boolean result = Boolean.FALSE;
        if (calendarDateComparator.compare(getBeginDate(), calendar) <= 0) {
            if (getEndDate() == null || calendarDateComparator.compare(getEndDate(), calendar) >= 0) {
                result = Boolean.TRUE;
            }
        }
        return result;
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.