Class ListValue
- java.lang.Object
-
- org.jboss.as.ejb3.timerservice.schedule.value.ListValue
-
- All Implemented Interfaces:
ScheduleValue
public class ListValue extends Object implements ScheduleValue
Represents a value for aScheduleExpressionwhich is expressed as a list type. AListValuecomprises of values separated by a ",".Each value in the
ListValuemust be an individual attribute value or a range. List items cannot themselves be lists, wild-cards, or increments. Duplicate values are allowed, but are ignored.- Version:
- $Revision: $
- Author:
- Jaikiran Pai
- See Also:
ScheduleExpressionType.LIST
-
-
Field Summary
Fields Modifier and Type Field Description static StringLIST_SEPARATOR
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>getValues()Returns the values that make up theListValue.
-
-
-
Field Detail
-
LIST_SEPARATOR
public static final String LIST_SEPARATOR
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ListValue
public ListValue(String list)
Creates aListValueby parsing the passedvalue.- Parameters:
list- The value to be parsed- Throws:
IllegalArgumentException- If the passedvaluecannot be represented as anListValue
-
-
Method Detail
-
getValues
public List<String> getValues()
Returns the values that make up theListValue.Each value in this set may be a
Stringrepresenting aSingleValueor aRangeValue- Returns:
-
-