public class DayWrapper extends Object implements Serializable
Constructor and Description |
---|
DayWrapper(LocalDateTime localDateTime)
创建DayWrapper
|
DayWrapper(LocalDateTime localDateTime,
boolean includeLunarDate)
创建DayWrapper
|
DayWrapper(LocalDateTime localDateTime,
boolean includeLunarDate,
boolean includeHoliday,
Map<String,String> localHolidayMap,
Map<String,String> chineseHolidayMap)
创建DayWrapper
|
DayWrapper(LocalDateTime localDateTime,
Object obj,
boolean includeLunarDate,
boolean includeHoliday,
Map<String,String> localHolidayMap,
Map<String,String> chineseHolidayMap) |
public DayWrapper(LocalDateTime localDateTime)
localDateTime
- LocalDateTimepublic DayWrapper(LocalDateTime localDateTime, boolean includeLunarDate)
localDateTime
- LocalDateTimeincludeLunarDate
- 是否包含农历public DayWrapper(LocalDateTime localDateTime, boolean includeLunarDate, boolean includeHoliday, Map<String,String> localHolidayMap, Map<String,String> chineseHolidayMap)
localDateTime
- LocalDateTimeincludeLunarDate
- 是否包含农历includeHoliday
- 是否包含节日localHolidayMap
- 自定义公历节日信息localHolidayMap 自定义公历节日数据,特殊节日如,"母亲节", "5-W-2-7"
5表示5月,W表示星期,2表示第二个星期,7表示星期的第7天,为null时,使用默认数据 LocalHolidayEnumchineseHolidayMap
- 自定义农历节日信息,特殊节日如除夕 用CHUXI表示,为null时,使用默认数据 ChineseHolidayEnumpublic Date getDate()
public void setDate(Date date)
public LocalDateTime getLocalDateTime()
public void setLocalDateTime(LocalDateTime localDateTime)
public Object getObj()
public void setObj(Object obj)
public String getDateStr()
public void setDateStr(String dateStr)
public int getDay()
public void setDay(int day)
public String getWeekCnShort()
public void setWeekCnShort(String weekCnShort)
public String getWeekEnShort()
public void setWeekEnShort(String weekEnShort)
public String getWeekEnShortUpper()
public void setWeekEnShortUpper(String weekEnShortUpper)
public String getWeekCnLong()
public void setWeekCnLong(String weekCnLong)
public String getWeekEnLong()
public void setWeekEnLong(String weekEnLong)
public LunarDate getLunarDate()
public void setLunarDate(LunarDate lunarDate)
public String getLocalHoliday()
public void setLocalHoliday(String localHoliday)
public String getChineseHoliday()
public void setChineseHoliday(String chineseHoliday)
public String getSolarTerm()
public void setSolarTerm(String solarTerm)
public String getLunarDateStr()
public void setLunarDateStr(String lunarDateStr)
public int getWeek()
public void setWeek(int week)
public int getDateType()
public void setDateType(int dateType)
public String getLunarDay()
public void setLunarDay(String lunarDay)
Copyright © 2021. All rights reserved.