Class RangeValue
java.lang.Object
org.jboss.as.ejb3.timerservice.schedule.value.RangeValue
- All Implemented Interfaces:
ScheduleValue
Represents a value for a
ScheduleExpression which is expressed as a range type. An
RangeValue comprises of a start and an end value for the range, separated by a "-"
Each side of the range must be an individual attribute value. Members of a range cannot themselves be lists, wild-cards, ranges, or increments. In range ”x-y”, if x is larger than y, the range is equivalent to “x-max, min-y”, where max is the largest value of the corresponding attribute and min is the smallest. The range “x-x”, where both range values are the same, evaluates to the single value x.
- Version:
- $Revision: $
- Author:
- Jaikiran Pai
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe separator which is used for parsing aStringwhich represents aRangeValue -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanasString()getEnd()Returns the end value of thisRangeValuegetStart()Returns the start value of thisRangeValue
-
Field Details
-
RANGE_SEPARATOR
The separator which is used for parsing aStringwhich represents aRangeValue- See Also:
-
-
Constructor Details
-
RangeValue
Creates aRangeValueby parsing the passedvalue.Upon successfully parsing the passed
value, this constructor sets the start and the end value of thisRangeValue- Parameters:
range- The value to be parsed- Throws:
IllegalArgumentException- If the passedvaluecannot be represented as anRangeValue
-
-
Method Details
-
getStart
Returns the start value of thisRangeValue- Returns:
-
getEnd
Returns the end value of thisRangeValue- Returns:
-
accepts
-
asString
-