All Implemented Interfaces:
Almanac, Culture

public class Holiday extends Loops
法定假日(自2001-12-29起)
Since:
Java 17+
Author:
Kimi Liu
  • Field Details

    • NAMES

      public static final String[] NAMES
      法定假日名称
    • day

      protected SolarDay day
      公历日
    • name

      protected String name
      名称
    • work

      protected boolean work
      是否上班
  • Constructor Details

    • Holiday

      public Holiday(int year, int month, int day, String data)
  • Method Details

    • fromYmd

      public static Holiday fromYmd(int year, int month, int day)
    • next

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

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

      public SolarDay getDay()
    • getName

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

      public boolean isWork()
      是否上班
      Returns:
      true/false