Package com.helger.datetime.period
Class LocalDatePeriod
- java.lang.Object
-
- com.helger.datetime.period.LocalDatePeriod
-
- All Implemented Interfaces:
IHasStartAndEnd<LocalDate>,ILocalDatePeriod
@Immutable public class LocalDatePeriod extends Object implements ILocalDatePeriod
Default implementation ofILocalDatePeriod.- Author:
- Philip Helger
-
-
Constructor Summary
Constructors Constructor Description LocalDatePeriod(LocalDate aStart, LocalDate aEnd)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)LocalDategetEnd()LocalDategetStart()inthashCode()StringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.helger.datetime.domain.IHasStartAndEnd
hasEnd, hasStart
-
Methods inherited from interface com.helger.datetime.period.ILocalDatePeriod
isInPeriod, isInPeriodExcl, isInPeriodIncl, isNowInPeriodExcl, isNowInPeriodIncl, isOverlappingWith, isOverlappingWithExcl, isOverlappingWithIncl
-
-
-
-
Method Detail
-
getStart
@Nullable public LocalDate getStart()
- Specified by:
getStartin interfaceIHasStartAndEnd<LocalDate>- Returns:
- The start. May be
null.
-
getEnd
@Nullable public LocalDate getEnd()
- Specified by:
getEndin interfaceIHasStartAndEnd<LocalDate>- Returns:
- The end. May be
null.
-
-