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(Calendar currentCal) |
boolean |
isRelativeValue(String value) |
assertValid, parseInt, processIncrement, processListItem, processListValue, processRangeValue, processSingleValue
public 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 int getFirst()
protected Integer getMaxValue()
Second
getMaxValue
in class IntegerBasedExpression
MAX_SECOND
protected Integer getMinValue()
Second
getMinValue
in class IntegerBasedExpression
MIN_SECOND
public boolean isRelativeValue(String value)
isRelativeValue
in class IntegerBasedExpression
protected boolean accepts(ScheduleExpressionType scheduleExprType)
accepts
in class IntegerBasedExpression
Copyright © 2014 JBoss by Red Hat. All rights reserved.