Java Code Examples for java.time.ZonedDateTime#isEqual()

The following examples show how to use java.time.ZonedDateTime#isEqual() . 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: GeZonedDateTime.java    From yare with MIT License 4 votes vote down vote up
@Override
protected Boolean evaluate(Object left, Object right) {
    ZonedDateTime cLeft = (ZonedDateTime) left;
    ZonedDateTime cRight = (ZonedDateTime) right;
    return cLeft.isAfter(cRight) || cLeft.isEqual(cRight);
}
 
Example 2
Source File: LeZonedDateTime.java    From yare with MIT License 4 votes vote down vote up
@Override
protected Boolean evaluate(Object left, Object right) {
    ZonedDateTime cLeft = (ZonedDateTime) left;
    ZonedDateTime cRight = (ZonedDateTime) right;
    return cLeft.isBefore(cRight) || cLeft.isEqual(cRight);
}
 
Example 3
Source File: EqualsTemporalInstant.java    From rya with Apache License 2.0 4 votes vote down vote up
@Override
protected boolean relation(final ZonedDateTime d1, final ZonedDateTime d2) {
    Objects.requireNonNull(d1);
    Objects.requireNonNull(d2);
    return d1.isEqual(d2);
}