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