< prev index next >

src/java.base/share/classes/java/time/chrono/ChronoLocalDate.java

Print this page
rev 12608 : [mq]: XXXXXXX-gt-lt-in-code

*** 713,723 **** * <p> * This method differs from the comparison in {@link #compareTo} in that it * only compares the underlying date and not the chronology. * This allows dates in different calendar systems to be compared based * on the time-line position. ! * This is equivalent to using {@code date1.toEpochDay() &gt; date2.toEpochDay()}. * <p> * This default implementation performs the comparison based on the epoch-day. * * @param other the other date to compare to, not null * @return true if this is after the specified date --- 713,723 ---- * <p> * This method differs from the comparison in {@link #compareTo} in that it * only compares the underlying date and not the chronology. * This allows dates in different calendar systems to be compared based * on the time-line position. ! * This is equivalent to using {@code date1.toEpochDay() > date2.toEpochDay()}. * <p> * This default implementation performs the comparison based on the epoch-day. * * @param other the other date to compare to, not null * @return true if this is after the specified date
*** 731,741 **** * <p> * This method differs from the comparison in {@link #compareTo} in that it * only compares the underlying date and not the chronology. * This allows dates in different calendar systems to be compared based * on the time-line position. ! * This is equivalent to using {@code date1.toEpochDay() &lt; date2.toEpochDay()}. * <p> * This default implementation performs the comparison based on the epoch-day. * * @param other the other date to compare to, not null * @return true if this is before the specified date --- 731,741 ---- * <p> * This method differs from the comparison in {@link #compareTo} in that it * only compares the underlying date and not the chronology. * This allows dates in different calendar systems to be compared based * on the time-line position. ! * This is equivalent to using {@code date1.toEpochDay() < date2.toEpochDay()}. * <p> * This default implementation performs the comparison based on the epoch-day. * * @param other the other date to compare to, not null * @return true if this is before the specified date
< prev index next >