public interface ILocalDatePeriod extends Serializable, IHasStartAndEnd<LocalDate>
| Modifier and Type | Method and Description |
|---|---|
default boolean |
isInPeriodExcl(LocalDate aDate)
Check if the provided date is inside this period, assuming that start and
end are excluded from/not part of the range.
|
default boolean |
isInPeriodIncl(LocalDate aDate)
Check if the provided date is inside this period, assuming that start and
end are included in/part of the range.
|
default boolean |
isNowInPeriodExcl()
Check if the current date is inside this period, assuming that start and
end are excluded from/not part of the range.
|
default boolean |
isNowInPeriodIncl()
Check if the current date is inside this period, assuming that start and
end are included in/part of the range.
|
getEnd, getStart, hasEnd, hasStartdefault boolean isInPeriodIncl(@Nonnull LocalDate aDate)
aDate - Date to check. May not be null.true if it is contained, false otherwise.isNowInPeriodIncl()default boolean isNowInPeriodIncl()
true if the current date is contained,
false otherwise.isInPeriodIncl(LocalDate)default boolean isInPeriodExcl(@Nonnull LocalDate aDate)
aDate - Date to check. May not be null.true if it is contained, false otherwise.isNowInPeriodExcl()default boolean isNowInPeriodExcl()
true if the current date is contained,
false otherwise.isInPeriodExcl(LocalDate)Copyright © 2014–2019 Philip Helger. All rights reserved.