Class WeekHasPassed

java.lang.Object
org.moduliths.moments.WeekHasPassed
All Implemented Interfaces:
org.jmolecules.event.types.DomainEvent

public class WeekHasPassed extends Object implements 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 Details

    • WeekHasPassed

      public WeekHasPassed()
  • Method Details

    • of

      public static WeekHasPassed of(Year year, int week)
      Creates a new WeekHasPassed for the given Year and week of the year.
      Parameters:
      year - must not be null.
      week - must not be null.
      Returns:
      will never be null.
    • getStartDate

      public LocalDate getStartDate()
      Returns the start date of the week that has passed.
      Returns:
      will never be null.
    • getEndDate

      public LocalDate getEndDate()
      Returns the end date of the week that has passed.
      Returns:
      will never be null.