Java Code Examples for org.joda.time.MutableDateTime#isAfter()

The following examples show how to use org.joda.time.MutableDateTime#isAfter() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: CronExpression.java    From chronos with BSD 3-Clause "New" or "Revised" License 4 votes vote down vote up
private static void checkIfDateTimeBarrierIsReached(MutableDateTime nextTime, DateTime dateTimeBarrier) {
    if (nextTime.isAfter(dateTimeBarrier)) {
        throw new IllegalArgumentException("No next execution time could be determined that is before the limit of " + dateTimeBarrier);
    }
}
 
Example 2
Source File: CronExpression.java    From cron with Apache License 2.0 4 votes vote down vote up
private static void checkIfDateTimeBarrierIsReached(MutableDateTime nextTime, DateTime dateTimeBarrier) {
    if (nextTime.isAfter(dateTimeBarrier)) {
        throw new IllegalArgumentException("No next execution time could be determined that is before the limit of " + dateTimeBarrier);
    }
}
 
Example 3
Source File: CronExpression.java    From actframework with Apache License 2.0 4 votes vote down vote up
private static void checkIfDateTimeBarrierIsReached(MutableDateTime nextTime, DateTime dateTimeBarrier) {
    if (nextTime.isAfter(dateTimeBarrier)) {
        throw new IllegalArgumentException("No next execution time could be determined that is before the limit of " + dateTimeBarrier);
    }
}