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