public class CronDefinition extends Object
Constructor and Description |
---|
CronDefinition(List<FieldDefinition> fieldDefinitions,
boolean lastFieldOptional)
Constructor
|
Modifier and Type | Method and Description |
---|---|
FieldDefinition |
getFieldDefinition(CronFieldName cronFieldName)
Returns field definition for field name of this cron
|
Set<FieldDefinition> |
getFieldDefinitions()
Returns field definitions for this cron
|
boolean |
isLastFieldOptional()
If last field of a cron expression is optional
|
public CronDefinition(List<FieldDefinition> fieldDefinitions, boolean lastFieldOptional)
fieldDefinitions
- - list with field definitions. Must not be null or empty.
Throws a NullPointerException if a null values is received
Throws an IllegalArgumentException if an empty list is receivedlastFieldOptional
- - boolean, value stating if last field is optionalpublic boolean isLastFieldOptional()
public Set<FieldDefinition> getFieldDefinitions()
public FieldDefinition getFieldDefinition(CronFieldName cronFieldName)
cronFieldName
- cron field nameCopyright © 2015. All rights reserved.