jdk/src/share/classes/java/time/chrono/ChronoLocalDateTime.java
changeset 17474 8c100beabcc0
parent 16852 60207b2b4b42
child 19030 32f129cb6351
equal deleted inserted replaced
17473:35cd9b3a98ff 17474:8c100beabcc0
   104  * calendar systems. The rationale for this is explored in detail in {@link ChronoLocalDate}.
   104  * calendar systems. The rationale for this is explored in detail in {@link ChronoLocalDate}.
   105  * <p>
   105  * <p>
   106  * Ensure that the discussion in {@code ChronoLocalDate} has been read and understood
   106  * Ensure that the discussion in {@code ChronoLocalDate} has been read and understood
   107  * before using this interface.
   107  * before using this interface.
   108  *
   108  *
   109  * <h3>Specification for implementors</h3>
   109  * @implSpec
   110  * This interface must be implemented with care to ensure other classes operate correctly.
   110  * This interface must be implemented with care to ensure other classes operate correctly.
   111  * All implementations that can be instantiated must be final, immutable and thread-safe.
   111  * All implementations that can be instantiated must be final, immutable and thread-safe.
   112  * Subclasses should be Serializable wherever possible.
   112  * Subclasses should be Serializable wherever possible.
   113  *
   113  *
   114  * @param <D> the concrete type for the date of this date-time
   114  * @param <D> the concrete type for the date of this date-time
   124      * This comparator differs from the comparison in {@link #compareTo} in that it
   124      * This comparator differs from the comparison in {@link #compareTo} in that it
   125      * only compares the underlying date-time and not the chronology.
   125      * only compares the underlying date-time and not the chronology.
   126      * This allows dates in different calendar systems to be compared based
   126      * This allows dates in different calendar systems to be compared based
   127      * on the position of the date-time on the local time-line.
   127      * on the position of the date-time on the local time-line.
   128      * The underlying comparison is equivalent to comparing the epoch-day and nano-of-day.
   128      * The underlying comparison is equivalent to comparing the epoch-day and nano-of-day.
       
   129      *
       
   130      * @return a comparator that compares in time-line order ignoring the chronology
   129      *
   131      *
   130      * @see #isAfter
   132      * @see #isAfter
   131      * @see #isBefore
   133      * @see #isBefore
   132      * @see #isEqual
   134      * @see #isEqual
   133      */
   135      */