public class Year extends IntegerBasedExpression
ScheduleExpression.getYear()
A Year can hold only Integer as its value. The only exception to this being the wildcard (*)
value. The various ways in which a
Year value can be represented are:
| Modifier and Type | Field and Description |
|---|---|
static Integer |
MAX_YEAR |
static Integer |
MIN_YEAR |
absoluteValues, origValue, relativeValues, scheduleExpressionType| Constructor and Description |
|---|
Year(String value)
Creates a
Year by parsing the passed String value
Valid values are of type ScheduleExpressionType.WILDCARD, ScheduleExpressionType.RANGE,
ScheduleExpressionType.LIST or ScheduleExpressionType.SINGLE_VALUE
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
accepts(ScheduleExpressionType scheduleExprType) |
protected Integer |
getMaxValue()
Returns the maximum possible value for a
Year |
protected Integer |
getMinValue()
Returns the minimum possible value for a
Year |
Integer |
getNextMatch(Calendar currentCal) |
boolean |
isRelativeValue(String value) |
assertValid, parseInt, processIncrement, processListItem, processListValue, processRangeValue, processSingleValuepublic static final Integer MAX_YEAR
public static final Integer MIN_YEAR
public Year(String value)
Year by parsing the passed String value
Valid values are of type ScheduleExpressionType.WILDCARD, ScheduleExpressionType.RANGE,
ScheduleExpressionType.LIST or ScheduleExpressionType.SINGLE_VALUE
value - The value to be parsedIllegalArgumentException - If the passed value is neither a ScheduleExpressionType.WILDCARD,
ScheduleExpressionType.RANGE, ScheduleExpressionType.LIST
nor ScheduleExpressionType.SINGLE_VALUEprotected Integer getMaxValue()
YeargetMaxValue in class IntegerBasedExpressionMAX_YEARprotected Integer getMinValue()
YeargetMinValue in class IntegerBasedExpressionMIN_YEARpublic boolean isRelativeValue(String value)
isRelativeValue in class IntegerBasedExpressionprotected boolean accepts(ScheduleExpressionType scheduleExprType)
accepts in class IntegerBasedExpressionCopyright © 2020 JBoss by Red Hat. All rights reserved.