public class FieldZonedDateTimeWrapper extends Object implements TemporalFieldWrapper<ZonedDateTime>
TemporalFieldWrapper which wraps a temporal field of a ZonedDateTime instance.| Constructor and Description |
|---|
FieldZonedDateTimeWrapper(int value,
ChronoField field) |
FieldZonedDateTimeWrapper(ZonedDateTime date,
ChronoField field) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isAfter(ZonedDateTime other) |
boolean |
isBefore(ZonedDateTime other) |
boolean |
isSame(ZonedDateTime other) |
int |
unwrap() |
TemporalFieldWrapper<ZonedDateTime> |
withZone(ZoneId zone)
Makes a copy of this wrapper based on a given time zone.
|
public FieldZonedDateTimeWrapper(int value,
ChronoField field)
public FieldZonedDateTimeWrapper(ZonedDateTime date, ChronoField field)
public boolean isAfter(ZonedDateTime other)
isAfter in interface TemporalFieldWrapper<ZonedDateTime>other - a temporal to test againsttrue if this temporal field is after the otherpublic boolean isBefore(ZonedDateTime other)
isBefore in interface TemporalFieldWrapper<ZonedDateTime>other - a temporal to test againsttrue if this temporal field is before the otherpublic boolean isSame(ZonedDateTime other)
isSame in interface TemporalFieldWrapper<ZonedDateTime>other - a temporal to test againsttrue if this temporal field is the same as the otherpublic int unwrap()
unwrap in interface TemporalFieldWrapper<ZonedDateTime>public TemporalFieldWrapper<ZonedDateTime> withZone(ZoneId zone)
TemporalFieldWrapperwithZone in interface TemporalFieldWrapper<ZonedDateTime>zone - a new reference time zoneCopyright © 2019. All rights reserved.