Package org.moduliths.moments
Class WeekHasPassed
java.lang.Object
org.moduliths.moments.WeekHasPassed
- All Implemented Interfaces:
org.jmolecules.event.types.DomainEvent
A
DomainEvent published if a week has passed. The semantics of what constitutes are depended on the
Locale provided.- Since:
- 1.3
- Author:
- Oliver Drotbohm
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the end date of the week that has passed.Returns the start date of the week that has passed.static WeekHasPassedCreates a newWeekHasPassedfor the givenYearand week of the year.
-
Constructor Details
-
WeekHasPassed
public WeekHasPassed()
-
-
Method Details
-
of
Creates a newWeekHasPassedfor the givenYearand week of the year.- Parameters:
year- must not be null.week- must not be null.- Returns:
- will never be null.
-
getStartDate
Returns the start date of the week that has passed.- Returns:
- will never be null.
-
getEndDate
Returns the end date of the week that has passed.- Returns:
- will never be null.
-