equal
deleted
inserted
replaced
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 */ |