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