Class BLCCronUtils

java.lang.Object
org.broadleafcommerce.common.util.BLCCronUtils

public class BLCCronUtils extends Object
Convenience class to facilitate cron interpretation.
Author:
Chris Kittrell (ckittrell)
  • Constructor Details

    • BLCCronUtils

      public BLCCronUtils()
  • Method Details

    • getNextValidTime

      public static Date getNextValidTime(String cron)
      Gathers the next time that the cron expression will be valid
      Parameters:
      cron -
      Returns:
      the next valid date
    • isValidExpression

      public static boolean isValidExpression(String cron)
      Determines whether or not the cron expression is valid
      Parameters:
      cron -
      Returns:
      whether or not the cron is valid