Class YearHasPassed

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

public class YearHasPassed extends Object implements org.jmolecules.event.types.DomainEvent
A DomainEvent published on the last day of the year.
Since:
1.3
Author:
Oliver Drotbohm
  • Constructor Details

    • YearHasPassed

      public YearHasPassed()
  • Method Details

    • of

      public static YearHasPassed of(int year)
      Creates a new YearHasPassed event 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.