public class ZonedDateTimeWrapper extends Object implements TemporalWrapper<ZonedDateTime>
TemporalWrapper which wraps a
ZonedDateTime instance| Constructor and Description |
|---|
ZonedDateTimeWrapper(Date date,
ZoneId zone) |
ZonedDateTimeWrapper(int year,
Month month,
int dayOfMonth,
int hour,
int minute,
int second,
int nanos,
ZoneId zone) |
ZonedDateTimeWrapper(int year,
Month month,
int dayOfMonth,
int hour,
int minute,
int second,
ZoneId zone) |
ZonedDateTimeWrapper(int year,
Month month,
int dayOfMonth,
ZoneId zone) |
ZonedDateTimeWrapper(LocalDateTime date,
ZoneId zone) |
ZonedDateTimeWrapper(ZonedDateTime date) |
| Modifier and Type | Method and Description |
|---|---|
long |
difference(ZonedDateTime other,
ChronoUnit unit)
Return the difference in units between this time and the other time in the given units
|
boolean |
isAfter(ZonedDateTime other) |
boolean |
isBefore(ZonedDateTime other) |
boolean |
isSame(ZonedDateTime other) |
boolean |
isSameDay(ZonedDateTime other) |
ZonedDateTime |
unwrap() |
public ZonedDateTimeWrapper(ZonedDateTime date)
public ZonedDateTimeWrapper(LocalDateTime date, ZoneId zone)
public ZonedDateTimeWrapper(int year,
Month month,
int dayOfMonth,
int hour,
int minute,
int second,
ZoneId zone)
public ZonedDateTimeWrapper(int year,
Month month,
int dayOfMonth,
int hour,
int minute,
int second,
int nanos,
ZoneId zone)
public long difference(ZonedDateTime other, ChronoUnit unit)
TemporalWrapperdifference in interface TemporalWrapper<ZonedDateTime>public boolean isAfter(ZonedDateTime other)
isAfter in interface TemporalWrapper<ZonedDateTime>other - a temporal to test againsttrue if this temporal is after the otherpublic boolean isBefore(ZonedDateTime other)
isBefore in interface TemporalWrapper<ZonedDateTime>other - a temporal to test againsttrue if this temporal is after the otherpublic boolean isSame(ZonedDateTime other)
isSame in interface TemporalWrapper<ZonedDateTime>other - a temporal to test againsttrue if this temporal is after the otherpublic boolean isSameDay(ZonedDateTime other)
isSameDay in interface TemporalWrapper<ZonedDateTime>other - a temporal to test againsttrue if this temporal is after the otherpublic ZonedDateTime unwrap()
unwrap in interface TemporalWrapper<ZonedDateTime>Copyright © 2015. All rights reserved.