Skip to content

Commit

Permalink
1.更新 CalendarUtils 部分注释代码
Browse files Browse the repository at this point in the history
Former-commit-id: caa3d70
Former-commit-id: 18f7c42
  • Loading branch information
Ttt committed Sep 26, 2020
1 parent aa17848 commit 56cb063
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions lib/DevApp/src/main/java/dev/utils/common/CalendarUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ public static boolean isFestival(final Festival festival, final int year, final
* @param year 年份
* @param month 月份
* @param day 天数
* @param festivalHook 节日 Hook 处理接口
* @param festivalHook 节日 Hook 接口
* @return {@code true} yes, {@code false} no
*/
public static boolean isFestival(final Festival festival, final int year, final int month,
Expand Down Expand Up @@ -339,7 +339,7 @@ public static Festival getFestival(final List<Festival> list, final int year, fi
* @param year 年份
* @param month 月份
* @param day 天数
* @param festivalHook 节日 Hook 处理接口
* @param festivalHook 节日 Hook 接口
* @return {@link Festival}
*/
public static Festival getFestival(final List<Festival> list, final int year, final int month,
Expand Down Expand Up @@ -858,7 +858,7 @@ public String toString() {
// = 接口 =
// ========

// 节日 Hook 处理接口
// 节日 Hook 接口
private static FestivalHook sFestivalHook = new FestivalHook() {
@Override
public Festival hook(Festival festival, int year, int month, int day) {
Expand Down Expand Up @@ -921,7 +921,7 @@ public Festival hook(Festival festival, int year, int month, int day) {
};

/**
* detail: 节日 Hook
* detail: 节日 Hook 接口
* @author Ttt
* <pre>
* 主要用于特殊节日判断, 如 除夕 非确定天数无法直接进行添加
Expand All @@ -930,7 +930,7 @@ public Festival hook(Festival festival, int year, int month, int day) {
public interface FestivalHook {

/**
* 节日判断 hook 处理
* 节日 hook 判断
* @param festival 节日信息
* @param year 年份
* @param month 月份
Expand All @@ -941,15 +941,15 @@ public interface FestivalHook {
}

/**
* 获取节日 Hook 处理接口
* 获取节日 Hook 接口
* @return {@link FestivalHook}
*/
public static FestivalHook getFestivalHook() {
return sFestivalHook;
}

/**
* 设置节日 Hook 处理
* 设置节日 Hook 接口
* @param festivalHook {@link FestivalHook}
*/
public static void setFestivalHook(final FestivalHook festivalHook) {
Expand Down

0 comments on commit 56cb063

Please sign in to comment.