Class Minute
- java.lang.Object
-
- org.jboss.as.ejb3.timerservice.schedule.attribute.IntegerBasedExpression
-
- org.jboss.as.ejb3.timerservice.schedule.attribute.Minute
-
public class Minute extends IntegerBasedExpression
Represents the value of a minute constructed out of aScheduleExpression.getMinute()A
Minutecan hold onlyIntegeras its value. The only exception to this being the wildcard (*) value. The various ways in which aMinutevalue 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
Fields Modifier and Type Field Description static IntegerMAX_MINUTEMaximum allowed value for aMinutestatic IntegerMIN_MINUTEMinimum allowed value for aMinute-
Fields inherited from class org.jboss.as.ejb3.timerservice.schedule.attribute.IntegerBasedExpression
absoluteValues, origValue, relativeValues, scheduleExpressionType
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanaccepts(ScheduleExpressionType scheduleExprType)intgetFirst()protected IntegergetMaxValue()Returns the maximum allowed value for aMinuteprotected IntegergetMinValue()Returns the minimum allowed value for aMinuteIntegergetNextMatch(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
-
-
-
-
Constructor Detail
-
Minute
public Minute(String value)
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 Detail
-
getFirst
public int getFirst()
-
getMaxValue
protected Integer getMaxValue()
Returns the maximum allowed value for aMinute- Specified by:
getMaxValuein classIntegerBasedExpression- See Also:
MAX_MINUTE
-
getMinValue
protected Integer getMinValue()
Returns the minimum allowed value for aMinute- Specified by:
getMinValuein classIntegerBasedExpression- See Also:
MIN_MINUTE
-
isRelativeValue
public boolean isRelativeValue(String value)
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
protected boolean accepts(ScheduleExpressionType scheduleExprType)
- Specified by:
acceptsin classIntegerBasedExpression
-
getNextMatch
public Integer getNextMatch(int currentMinute)
-
-