All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.litongjava.utils.cron.CronUtils Maven / Gradle / Ivy

There is a newer version: 1.1.0
Show newest version
package com.litongjava.utils.cron;

/**
 *cron表达式工具类
 *
 */
public class CronUtils {
  /**
   * 返回一个布尔值代表一个给定的Cron表达式的有效性
   *
   * @param cronExpression Cron表达式
   * @return boolean 表达式是否有效
   */
  public static boolean isValid(String cronExpression) {
//    Pattern pattern = Pattern.compile(cron4jCronRegEx);
//    Matcher matcher = pattern.matcher(cronExpression);
//    if (matcher != null) {
//      return true;
//    } else {
//      return false;
//    }
    //cronExpression.split("/")
    return false;
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy