Package org.moduliths.moments
Class YearHasPassed
java.lang.Object
org.moduliths.moments.YearHasPassed
- All Implemented Interfaces:
org.jmolecules.event.types.DomainEvent
A
DomainEvent published on the last day of the year.- Since:
- 1.3
- Author:
- Oliver Drotbohm
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) LocalDateReturns the end date of the year passed.(package private) LocalDateReturns the start date of the year passed.static YearHasPassedof(int year) Creates a newYearHasPassedevent for the given year.
-
Constructor Details
-
YearHasPassed
public YearHasPassed()
-
-
Method Details
-
of
Creates a newYearHasPassedevent for the given year.- Parameters:
year- a valid year- Returns:
- will never be null.
-
getStartDate
LocalDate getStartDate()Returns the start date of the year passed.- Returns:
- will never be null.
-
getEndDate
LocalDate getEndDate()Returns the end date of the year passed.- Returns:
- will never be null.
-