public interface TemporalWrapper<T>
| Modifier and Type | Method and Description |
|---|---|
long |
difference(T other,
ChronoUnit unit)
Return the difference in units between this time and the other time in the given units
|
boolean |
isAfter(T other) |
boolean |
isBefore(T other) |
boolean |
isSame(T other) |
T |
unwrap() |
TemporalWrapper<T> |
withZone(ZoneId zone)
Makes a copy of this wrapper based on a given time zone.
|
boolean isAfter(T other)
other - a temporal to test againsttrue if this temporal is after the otherboolean isBefore(T other)
other - a temporal to test againsttrue if this temporal is before the otherboolean isSame(T other)
other - a temporal to test againsttrue if this temporal is the same as the otherT unwrap()
long difference(T other, ChronoUnit unit)
TemporalWrapper<T> withZone(ZoneId zone)
zone - a new reference time zoneCopyright © 2019. All rights reserved.