Class QuarterHasPassed
java.lang.Object
org.springframework.modulith.moments.QuarterHasPassed
- All Implemented Interfaces:
org.jmolecules.event.types.DomainEvent
A
DomainEvent
published once a quarter has passed.- Author:
- Oliver Drotbohm
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns 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.int
hashCode()
static QuarterHasPassed
static QuarterHasPassed
static QuarterHasPassed
of
(Year year, ShiftedQuarter quarter)
-
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.- 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.
-
equals
-
hashCode
public int hashCode()
-