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