public class CronPatternUtil extends Object
| Constructor and Description | 
|---|
| CronPatternUtil() | 
| Modifier and Type | Method and Description | 
|---|---|
| static List<Date> | matchedDates(CronPattern pattern,
            long start,
            long end,
            int count)列举指定日期范围内所有匹配表达式的日期 | 
| static List<Date> | matchedDates(String patternStr,
            Date start,
            Date end,
            int count)列举指定日期范围内所有匹配表达式的日期 | 
| static List<Date> | matchedDates(String patternStr,
            Date start,
            int count)列举指定日期之后(到开始日期对应年年底)内所有匹配表达式的日期 | 
| static List<Date> | matchedDates(String patternStr,
            long start,
            long end,
            int count)列举指定日期范围内所有匹配表达式的日期 | 
| static Date | nextDateAfter(CronPattern pattern,
             Date start)列举指定日期之后(到开始日期对应年年底)内第一个匹配表达式的日期 | 
public static Date nextDateAfter(CronPattern pattern, Date start)
pattern - 表达式start - 起始时间public static List<Date> matchedDates(String patternStr, Date start, int count)
patternStr - 表达式字符串start - 起始时间count - 列举数量public static List<Date> matchedDates(String patternStr, Date start, Date end, int count)
patternStr - 表达式字符串start - 起始时间end - 结束时间count - 列举数量public static List<Date> matchedDates(String patternStr, long start, long end, int count)
patternStr - 表达式字符串start - 起始时间end - 结束时间count - 列举数量public static List<Date> matchedDates(CronPattern pattern, long start, long end, int count)
pattern - 表达式start - 起始时间end - 结束时间count - 列举数量Copyright © 2025. All rights reserved.