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