public class Second extends IntegerBasedExpression
ScheduleExpression.getSecond()
A Second can hold only Integer as its value. The only exception to this being the wildcard (*)
value. The various ways in which a
Second value can be represented are:
| Modifier and Type | Field and Description |
|---|---|
static Integer |
MAX_SECOND
The maximum allowed value for a second
|
static Integer |
MIN_SECOND
Minimum allowed value for a second
|
absoluteValues, origValue, relativeValues, scheduleExpressionType| Modifier and Type | Method and Description |
|---|---|
protected boolean |
accepts(ScheduleExpressionType scheduleExprType) |
int |
getFirst() |
protected Integer |
getMaxValue()
Returns the maximum allowed value for a
Second |
protected Integer |
getMinValue()
Returns the minimum allowed value for a
Second |
Integer |
getNextMatch(int currentSecond) |
boolean |
isRelativeValue(String value) |
assertValid, parseInt, processIncrement, processListItem, processListValue, processRangeValue, processSingleValuepublic static final Integer MAX_SECOND
public static final Integer MIN_SECOND
public Second(String value)
Second by parsing the passed String value
Valid values are of type ScheduleExpressionType.WILDCARD, ScheduleExpressionType.RANGE,
ScheduleExpressionType.LIST ScheduleExpressionType.INCREMENT or
ScheduleExpressionType.SINGLE_VALUE
value - The value to be parsedIllegalArgumentException - If the passed value is neither a ScheduleExpressionType.WILDCARD,
ScheduleExpressionType.RANGE, ScheduleExpressionType.LIST,
ScheduleExpressionType.INCREMENT nor ScheduleExpressionType.SINGLE_VALUE.public Integer getNextMatch(int currentSecond)
public int getFirst()
protected Integer getMaxValue()
SecondgetMaxValue in class IntegerBasedExpressionMAX_SECONDprotected Integer getMinValue()
SecondgetMinValue in class IntegerBasedExpressionMIN_SECONDpublic boolean isRelativeValue(String value)
isRelativeValue in class IntegerBasedExpressionprotected boolean accepts(ScheduleExpressionType scheduleExprType)
accepts in class IntegerBasedExpressionCopyright © 2019 JBoss by Red Hat. All rights reserved.