Package com.helger.datetime.period
Class LocalDateTimePeriod
- java.lang.Object
-
- com.helger.datetime.period.LocalDateTimePeriod
-
- All Implemented Interfaces:
IHasStartAndEnd<LocalDateTime>,ILocalDateTimePeriod
@Immutable public class LocalDateTimePeriod extends Object implements ILocalDateTimePeriod
Default implementation ofILocalDateTimePeriod.- Author:
- Philip Helger
-
-
Constructor Summary
Constructors Constructor Description LocalDateTimePeriod(LocalDateTime aStart, LocalDateTime aEnd)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)LocalDateTimegetEnd()LocalDateTimegetStart()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.ILocalDateTimePeriod
isInPeriod, isInPeriodExcl, isInPeriodIncl, isNowInPeriodExcl, isNowInPeriodIncl, isOverlappingWith, isOverlappingWithExcl, isOverlappingWithIncl
-
-
-
-
Constructor Detail
-
LocalDateTimePeriod
public LocalDateTimePeriod(@Nullable LocalDateTime aStart, @Nullable LocalDateTime aEnd)
-
-
Method Detail
-
getStart
@Nullable public LocalDateTime getStart()
- Specified by:
getStartin interfaceIHasStartAndEnd<LocalDateTime>- Returns:
- The start. May be
null.
-
getEnd
@Nullable public LocalDateTime getEnd()
- Specified by:
getEndin interfaceIHasStartAndEnd<LocalDateTime>- Returns:
- The end. May be
null.
-
-