クラス YearHasPassed

java.lang.ObjectSE
org.springframework.modulith.moments.YearHasPassed
実装されたすべてのインターフェース:
org.jmolecules.event.types.DomainEvent

public class YearHasPassed extends ObjectSE implements org.jmolecules.event.types.DomainEvent
年末に公開された DomainEvent
作成者:
Oliver Drotbohm
  • メソッドの詳細

    • of

      public static YearHasPassed of(YearSE year)
      指定された YearSE の新しい YearHasPassed を作成します。
      パラメーター:
      year - null であってはなりません。
    • of

      public static YearHasPassed of(int year)
      指定された年の新しい YearHasPassed イベントを作成します。
      パラメーター:
      year - 有効な年
      戻り値:
      null になることはありません。
    • getYear

      public YearSE getYear()
      先ほど通り過ぎた YearSE
      戻り値:
      null になることはありません。
    • getStartDate

      LocalDateSE getStartDate()
      経過した年の開始日を返します。
      戻り値:
      null になることはありません。
    • getEndDate

      LocalDateSE getEndDate()
      経過した年の終了日を返します。
      戻り値:
      null になることはありません。
    • equals

      public boolean equals(ObjectSE obj)
      オーバーライド:
      クラス ObjectSEequalsSE 
    • hashCode

      public int hashCode()
      オーバーライド:
      クラス ObjectSEhashCode