Java Code Examples for org.joda.time.LocalDate.isEqual()

The following are Jave code examples for showing how to use isEqual() of the org.joda.time.LocalDate class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: yum   File: OrdersService.java   Source Code and License Vote up 5 votes
private Boolean allowAdminAfterTodayChangeOrder(com.jrtechnologies.yum.data.entity.User sourceUser, LocalDate menuDate,
        Long userId) {
    if (userId != 0 && sourceUser.getUserRole().toString().equalsIgnoreCase("admin")
            && (menuDate.isEqual(new LocalDate()) || menuDate.isAfter(new LocalDate()))) {
        return true;
    }
    return false;
}