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