Class MatcherTable

java.lang.Object
org.aoju.bus.cron.pattern.matcher.MatcherTable

public class MatcherTable extends Object
时间匹配表,用于存放定时任务表达式解析后的结构信息
Since:
Java 17+
Version:
6.5.0
Author:
Kimi Liu
  • Field Details

  • Constructor Details

    • MatcherTable

      public MatcherTable(int size)
      构造
      Parameters:
      size - 表达式个数,用于表示复合表达式中单个表达式个数
  • Method Details

    • nextMatchAfter

      public LocalDateTime nextMatchAfter(int second, int minute, int hour, int dayOfMonth, int month, int dayOfWeek, int year)
    • match

      public boolean match(int second, int minute, int hour, int dayOfMonth, int month, int dayOfWeek, int year)
      给定时间是否匹配定时任务表达式
      Parameters:
      second - 秒数,-1表示不匹配此项
      minute - 分钟
      hour - 小时
      dayOfMonth - 天
      month - 月
      dayOfWeek - 周几
      year - 年
      Returns:
      如果匹配返回 true, 否则返回 false