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
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, processSingleValue
public 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_VALUE
protected Integer getMaxValue()
Year
getMaxValue
in class IntegerBasedExpression
MAX_YEAR
protected Integer getMinValue()
Year
getMinValue
in class IntegerBasedExpression
MIN_YEAR
public boolean isRelativeValue(String value)
isRelativeValue
in class IntegerBasedExpression
protected boolean accepts(ScheduleExpressionType scheduleExprType)
accepts
in class IntegerBasedExpression
Copyright © 2013 JBoss by Red Hat. All rights reserved.