Class BLCCronUtils
java.lang.Object
org.broadleafcommerce.common.util.BLCCronUtils
Convenience class to facilitate cron interpretation.
- Author:
- Chris Kittrell (ckittrell)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Date
getNextValidTime
(String cron) Gathers the next time that the cron expression will be validstatic boolean
isValidExpression
(String cron) Determines whether or not the cron expression is valid
-
Constructor Details
-
BLCCronUtils
public BLCCronUtils()
-
-
Method Details
-
getNextValidTime
Gathers the next time that the cron expression will be valid- Parameters:
cron
-- Returns:
- the next valid date
-
isValidExpression
Determines whether or not the cron expression is valid- Parameters:
cron
-- Returns:
- whether or not the cron is valid
-