public class LunarFestival extends AbstractTyme
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
DATA |
protected LunarDay |
day
农历日
|
protected int |
index
索引
|
protected String |
name
名称
|
static String[] |
NAMES |
protected SolarTerm |
solarTerm
节气
|
protected FestivalType |
type
类型
|
| 限定符 | 构造器和说明 |
|---|---|
protected |
LunarFestival(FestivalType type,
LunarDay day,
SolarTerm solarTerm,
String data) |
| 限定符和类型 | 方法和说明 |
|---|---|
static LunarFestival |
fromIndex(int year,
int index) |
static LunarFestival |
fromYmd(int year,
int month,
int day) |
LunarDay |
getDay()
农历日
|
int |
getIndex()
索引
|
String |
getName()
名称
|
SolarTerm |
getSolarTerm()
节气,非节气返回null
|
FestivalType |
getType()
类型
|
LunarFestival |
next(int n)
推移
|
String |
toString() |
equals, indexOfpublic static final String[] NAMES
public static String DATA
protected FestivalType type
protected int index
protected LunarDay day
protected SolarTerm solarTerm
protected String name
protected LunarFestival(FestivalType type, LunarDay day, SolarTerm solarTerm, String data)
public static LunarFestival fromIndex(int year, int index)
public static LunarFestival fromYmd(int year, int month, int day)
public LunarFestival next(int n)
Tymen - 推移步数public FestivalType getType()
public int getIndex()
public LunarDay getDay()
public SolarTerm getSolarTerm()
public String toString()
toString 在类中 AbstractCultureCopyright © 2024. All Rights Reserved.