Class Minute
java.lang.Object
org.jboss.as.ejb3.timerservice.schedule.attribute.IntegerBasedExpression
org.jboss.as.ejb3.timerservice.schedule.attribute.Minute
Represents the value of a minute constructed out of a
ScheduleExpression.getMinute()
A Minute can hold only Integer as its value. The only exception to this being the wildcard (*)
value. The various ways in which a
Minute value can be represented are:
- Wildcard. For example, minute = "*"
- Range. For example, minute = "0-20"
- List. For example, minute = "10, 30, 45"
- Single value. For example, minute = "8"
- Increment. For example, minute = "10 / 15"
- Version:
- $Revision: $
- Author:
- Jaikiran Pai
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final IntegerMaximum allowed value for aMinutestatic final IntegerMinimum allowed value for aMinuteFields inherited from class org.jboss.as.ejb3.timerservice.schedule.attribute.IntegerBasedExpression
absoluteValues, origValue, relativeValues, scheduleExpressionType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanaccepts(ScheduleExpressionType scheduleExprType) intgetFirst()protected IntegerReturns the maximum allowed value for aMinuteprotected IntegerReturns the minimum allowed value for aMinutegetNextMatch(int currentMinute) booleanisRelativeValue(String value) Checks if relative value is supported.Methods inherited from class org.jboss.as.ejb3.timerservice.schedule.attribute.IntegerBasedExpression
assertValid, getType, parseInt, processIncrement, processListItem, processListValue, processRangeValue, processSingleValue
-
Field Details
-
Constructor Details
-
Minute
Creates aMinuteby parsing the passedStringvalueValid values are of type
ScheduleExpressionType.WILDCARD,ScheduleExpressionType.RANGE,ScheduleExpressionType.LISTScheduleExpressionType.INCREMENTorScheduleExpressionType.SINGLE_VALUE- Parameters:
value- The value to be parsed- Throws:
IllegalArgumentException- If the passedvalueis neither aScheduleExpressionType.WILDCARD,ScheduleExpressionType.RANGE,ScheduleExpressionType.LIST,ScheduleExpressionType.INCREMENTnorScheduleExpressionType.SINGLE_VALUE.
-
-
Method Details
-
getFirst
public int getFirst() -
getMaxValue
Returns the maximum allowed value for aMinute- Specified by:
getMaxValuein classIntegerBasedExpression- See Also:
-
getMinValue
Returns the minimum allowed value for aMinute- Specified by:
getMinValuein classIntegerBasedExpression- See Also:
-
isRelativeValue
Description copied from class:IntegerBasedExpressionChecks if relative value is supported.- Specified by:
isRelativeValuein classIntegerBasedExpression- Parameters:
value- non-null value- Returns:
- true if relative value is supported
-
accepts
- Specified by:
acceptsin classIntegerBasedExpression
-
getNextMatch
-