|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CronSlice
Represents a contiguous subset of Cron columns. By default, all legal values are represented in each Cron column. The first method call to add() or addAll() replaces the default values with the values specified in the add() or addAll() method call.
Method Summary | |
---|---|
void |
add(CronColumn column,
int value)
Adds a value in a particular Cron column. |
void |
add(CronColumn column,
int start,
int end)
Adds a range of values in a particular Cron column. |
void |
add(CronColumn column,
int start,
int end,
int stepValue)
Adds a range of values in a particular Cron column. |
void |
add(CronColumn column,
java.lang.String value)
Adds a value in a particular Cron column. |
void |
add(CronColumn column,
java.lang.String start,
java.lang.String end)
Adds a range of values in a particular Cron column. |
void |
add(CronColumn column,
java.lang.String start,
java.lang.String end,
int stepValue)
Adds a range of values in a particular Cron column. |
void |
addAll(CronColumn column)
Adds all of the values in a particular Cron column. |
void |
addAll(CronColumn column,
int stepValue)
Adds the values in a particular Cron column, starting with the minimum allowed value. |
java.util.List |
get(CronColumn column)
Returns a sorted set of elements representing the included values of the selected column. |
CronColumn |
getEndingCronColumn()
Returns the ending Cron column for this Cron slice. |
CronColumn |
getStartingCronColumn()
Returns the starting Cron column for this Cron slice. |
boolean |
includesAllValues(CronColumn column)
Indicates whether the specified Cron column contains all possible values. |
Method Detail |
---|
void add(CronColumn column, int value)
column
- The column to which these values are added.value
- The value to add.
java.lang.IllegalArgumentException
- If the Cron column is outside of the
accepted range of this CronSlice of if value is outside of the range
accepted by the Cron column.void add(CronColumn column, int start, int end)
column
- The column to which these values are added.start
- The starting value in the range to add.end
- The ending value in the range to add.
java.lang.IllegalArgumentException
- If the Cron column is outside of the
accepted range of this CronSlice, if the start or end values are outside
of the range accepted by the Cron column, or if end precedes start.void add(CronColumn column, int start, int end, int stepValue)
column
- The column to which these values are added.start
- The starting value in the range to add.end
- The ending value in the range to add.stepValue
- The increment used to skip over certain Cron column
values.
java.lang.IllegalArgumentException
- If the Cron column is outside of the
accepted range of this CronSlice, if the start or end values are outside
of the range accepted by the Cron column, if end precedes start, or if
stepValue is less than 1.void add(CronColumn column, java.lang.String value)
column
- The column to which these values are added.value
- The value to add.
java.lang.IllegalArgumentException
- If the Cron column is outside of the
accepted range of this CronSlice of if value is outside of the range
accepted by the Cron column.void add(CronColumn column, java.lang.String start, java.lang.String end)
column
- The column to which these values are added.start
- The starting value in the range to add.end
- The ending value in the range to add.
java.lang.IllegalArgumentException
- If the Cron column is outside of the
accepted range of this CronSlice, if the start or end values are outside
of the range accepted by the Cron column, or if end precedes start.void add(CronColumn column, java.lang.String start, java.lang.String end, int stepValue)
column
- The column to which these values are added.start
- The starting value in the range to add.end
- The ending value in the range to add.stepValue
- The increment used to skip over certain Cron column
values.
java.lang.IllegalArgumentException
- If the Cron column is outside of the
accepted range of this CronSlice, if the start or end values are outside
of the range accepted by the Cron column, if end precedes start, or if
stepValue is less than 1.void addAll(CronColumn column)
column
- The CronColumn to which these values are added.
java.lang.IllegalArgumentException
- If the Cron column is outside of the
accepted range of this CronSlice.void addAll(CronColumn column, int stepValue)
column
- The column to which these values are added.stepValue
- The increment used to skip over certain Cron column values.
java.lang.IllegalArgumentException
- If the Cron column is outside of the
accepted range of this CronSlice or if stepValue is less than 1.java.util.List get(CronColumn column)
For example, if the millisecond column of a Cron string is "1,2,3,10-20/3", the elements in the list would be:
[0] = "1"
[1] = "2"
[2] = "3"
[3] = "10"
[4] = "13"
[5] = "16"
[6] = "19"
column
- The column from which these values are retreived.
CronColumn getEndingCronColumn()
CronColumn getStartingCronColumn()
boolean includesAllValues(CronColumn column)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |