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