Class Holiday.Builder
java.lang.Object
cloud.opencode.base.date.holiday.Holiday.Builder
- Enclosing class:
Holiday
Builder for Holiday
Holiday构建器
- Since:
- JDK 25, opencode-base-date V1.0.0
- Author:
- Leon Soo www.LeonSoo.com
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the Holiday 构建HolidaychineseName(String chineseName) Sets the Chinese name 设置中文名称Sets the date 设置日期dayOff(boolean dayOff) Sets whether this is a day off 设置是否放假description(String description) Sets the description 设置描述Sets the name 设置名称observedDate(LocalDate observedDate) Sets the observed date 设置调休日期type(Holiday.HolidayType type) Sets the type 设置类型
-
Method Details
-
date
Sets the date 设置日期- Parameters:
date- the date | 日期- Returns:
- this builder | 此构建器
-
name
Sets the name 设置名称- Parameters:
name- the name | 名称- Returns:
- this builder | 此构建器
-
chineseName
Sets the Chinese name 设置中文名称- Parameters:
chineseName- the Chinese name | 中文名称- Returns:
- this builder | 此构建器
-
type
Sets the type 设置类型- Parameters:
type- the type | 类型- Returns:
- this builder | 此构建器
-
observedDate
Sets the observed date 设置调休日期- Parameters:
observedDate- the observed date | 调休日期- Returns:
- this builder | 此构建器
-
dayOff
Sets whether this is a day off 设置是否放假- Parameters:
dayOff- whether it's a day off | 是否放假- Returns:
- this builder | 此构建器
-
description
Sets the description 设置描述- Parameters:
description- the description | 描述- Returns:
- this builder | 此构建器
-
build
-