Class SolarQuarter

All Implemented Interfaces:
Almanac, Culture

public class SolarQuarter extends Loops
公历季度
Since:
Java 17+
Author:
Kimi Liu
  • Field Details

    • year

      protected SolarYear year
    • index

      protected int index
      索引,0-3
  • Constructor Details

    • SolarQuarter

      public SolarQuarter(int year, int index)
      初始化
      Parameters:
      year - 年
      index - 索引,0-3
  • Method Details

    • fromIndex

      public static SolarQuarter fromIndex(int year, int index)
    • getSolarYear

      public SolarYear getSolarYear()
      公历年
      Returns:
      公历年
    • getYear

      public int getYear()
      Returns:
    • getIndex

      public int getIndex()
      索引
      Returns:
      索引,0-3
    • getName

      public String getName()
      Description copied from interface: Almanac
      名称
      Returns:
      名称
    • toString

      public String toString()
      Overrides:
      toString in class Tradition
    • next

      public SolarQuarter next(int n)
      Description copied from interface: Culture
      推移
      Parameters:
      n - 推移步数
      Returns:
      this
    • getMonths

      public List<SolarMonth> getMonths()
      月份列表
      Returns:
      月份列表,1季度有3个月。