Constructor and Description |
---|
CronTabList(Collection<CronTab> tabs) |
Modifier and Type | Method and Description |
---|---|
boolean |
check(Calendar cal)
Returns true if the given calendar matches
|
String |
checkSanity()
Checks if this crontab entry looks reasonable,
and if not, return an warning message.
|
static CronTabList |
create(String format) |
static CronTabList |
create(String format,
Hash hash) |
static String |
getValidTimezone(String timezone)
Checks if given timezone string is supported by TimeZone and returns
the same string if valid, null otherwise
|
Calendar |
next() |
Calendar |
previous() |
public CronTabList(Collection<CronTab> tabs)
public boolean check(Calendar cal)
public String checkSanity()
The point of this method is to catch syntactically correct but semantically suspicious combinations, like "* 0 * * *"
@CheckForNull public static String getValidTimezone(String timezone)
public static CronTabList create(@Nonnull String format) throws antlr.ANTLRException
antlr.ANTLRException
public static CronTabList create(@Nonnull String format, Hash hash) throws antlr.ANTLRException
antlr.ANTLRException
@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) @CheckForNull public Calendar previous()
@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) @CheckForNull public Calendar next()
Copyright © 2004–2019. All rights reserved.