Lines Matching defs:ChronoZonedDateTime

98  * A {@code ChronoZonedDateTime} is the abstract representation of an offset date-time
121 public interface ChronoZonedDateTime<D extends ChronoLocalDate>
122 extends Temporal, Comparable<ChronoZonedDateTime<?>> {
125 * Gets a comparator that compares {@code ChronoZonedDateTime} in
139 static Comparator<ChronoZonedDateTime<?>> timeLineOrder() {
145 * Obtains an instance of {@code ChronoZonedDateTime} from a temporal object.
149 * which this factory converts to an instance of {@code ChronoZonedDateTime}.
158 * allowing it to be used as a query via method reference, {@code ChronoZonedDateTime::from}.
162 * @throws DateTimeException if unable to convert to a {@code ChronoZonedDateTime}
165 static ChronoZonedDateTime<?> from(TemporalAccessor temporal) {
166 if (temporal instanceof ChronoZonedDateTime) {
167 return (ChronoZonedDateTime<?>) temporal;
172 throw new DateTimeException("Unable to obtain ChronoZonedDateTime from TemporalAccessor: " + temporal.getClass());
294 * @return a {@code ChronoZonedDateTime} based on this date-time with the earlier offset, not null
298 ChronoZonedDateTime<D> withEarlierOffsetAtOverlap();
314 * @return a {@code ChronoZonedDateTime} based on this date-time with the later offset, not null
318 ChronoZonedDateTime<D> withLaterOffsetAtOverlap();
333 * @return a {@code ChronoZonedDateTime} based on this date-time with the requested zone, not null
335 ChronoZonedDateTime<D> withZoneSameLocal(ZoneId zone);
351 * @return a {@code ChronoZonedDateTime} based on this date-time with the requested zone, not null
354 ChronoZonedDateTime<D> withZoneSameInstant(ZoneId zone);
412 default ChronoZonedDateTime<D> with(TemporalAdjuster adjuster) {
422 ChronoZonedDateTime<D> with(TemporalField field, long newValue);
430 default ChronoZonedDateTime<D> plus(TemporalAmount amount) {
440 ChronoZonedDateTime<D> plus(long amountToAdd, TemporalUnit unit);
448 default ChronoZonedDateTime<D> minus(TemporalAmount amount) {
458 default ChronoZonedDateTime<D> minus(long amountToSubtract, TemporalUnit unit) {
569 default int compareTo(ChronoZonedDateTime<?> other) {
599 default boolean isBefore(ChronoZonedDateTime<?> other) {
619 default boolean isAfter(ChronoZonedDateTime<?> other) {
639 default boolean isEqual(ChronoZonedDateTime<?> other) {
650 * Only objects of type {@code ChronoZonedDateTime} are compared, other types return false.