public class CronDefinition extends Object
| Constructor and Description |
|---|
CronDefinition(List<FieldDefinition> fieldDefinitions,
Set<CronConstraint> cronConstraints,
boolean lastFieldOptional,
boolean strictRanges)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
Set<CronConstraint> |
getCronConstraints() |
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
|
boolean |
isStrictRanges()
If ranges for field values should be strictly enforced ('from' greater than 'to')
|
public CronDefinition(List<FieldDefinition> fieldDefinitions, Set<CronConstraint> cronConstraints, boolean lastFieldOptional, boolean strictRanges)
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 boolean isStrictRanges()
public Set<FieldDefinition> getFieldDefinitions()
public FieldDefinition getFieldDefinition(CronFieldName cronFieldName)
cronFieldName - cron field namepublic Set<CronConstraint> getCronConstraints()
Copyright © 2016. All rights reserved.