クラス ShiftedQuarter

java.lang.ObjectSE
org.springframework.modulith.moments.ShiftedQuarter

public class ShiftedQuarter extends ObjectSE
構成可能な MonthSE で開始するようにシフトできる四半期。
作成者:
Oliver Drotbohm
  • メソッドの詳細

    • of

      public static ShiftedQuarter of(Quarter quarter, MonthSE startMonth)
      指定された Quarter に対して新しい ShiftedQuarter を作成し、MonthSE を開始します。
      パラメーター:
      quarter - null であってはなりません。
      startMonth - null であってはなりません。
    • of

      public static ShiftedQuarter of(Quarter quarter)
    • getQuarter

      public Quarter getQuarter()
      論理 Quarter を返します。
      戻り値:
      null になることはありません。
    • next

      public ShiftedQuarter next()
      次の ShiftedQuarter を返します。
      戻り値:
      null になることはありません。
    • contains

      public boolean contains(LocalDateSE date)
      指定された LocalDateSE が現在の ShiftedQuarter に含まれているかどうかを返します。
      パラメーター:
      date - null であってはなりません。
      戻り値:
    • getStart

      public MonthDaySE getStart()
      戻り値:
      null になることはありません。
    • getEnd

      public MonthDaySE getEnd()
      戻り値:
      null になることはありません。
    • isLastDay

      public boolean isLastDay(LocalDateSE date)
      指定された LocalDateSEShiftedQuarter の最終日であるかどうかを返します。
      パラメーター:
      date - null であってはなりません。
    • getStartDate

      public LocalDateSE getStartDate(YearSE year)
      指定された YearSEShiftedQuarter の開始日を返します。
      パラメーター:
      year - null であってはなりません。
      戻り値:
      null になることはありません。
    • getEndDate

      public LocalDateSE getEndDate(YearSE year)
      指定された YearSEShiftedQuarter の終了日を返します。
      パラメーター:
      year - null であってはなりません。
      戻り値:
      null になることはありません。
    • equals

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

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