Package org.moduliths.moments
Class QuarterHasPassed
java.lang.Object
org.moduliths.moments.QuarterHasPassed
- All Implemented Interfaces:
org.jmolecules.event.types.DomainEvent
A
DomainEvent published once a quarter has passed.- Since:
- 1.3
- Author:
- Oliver Drotbohm
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the date of the last day of the quarter that has just passed.Returns the date of the first day of the quarter that has just passed.static QuarterHasPassedstatic QuarterHasPassed
-
Constructor Details
-
QuarterHasPassed
public QuarterHasPassed()
-
-
Method Details
-
of
- Parameters:
year- must not be null.quarter- must not be null.- Returns:
- will never be null.
-
of
- Parameters:
year- must not be null.quarter- must not be null.startMonth- must not be null.- Returns:
- will never be null.
-
getStartDate
Returns the date of the first day of the quarter that has just passed.- Returns:
- will never be null.
-
getEndDate
Returns the date of the last day of the quarter that has just passed.- Returns:
- will never be null.
-