public class CronDefinition extends Object implements Serializable
Constructor and Description |
---|
CronDefinition(List<FieldDefinition> fieldDefinitions,
Set<CronConstraint> cronConstraints,
boolean matchDayOfWeekAndDayOfMonth)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
containsFieldDefinition(CronFieldName cronFieldName)
Returns
true if this cron contains a field definition for field name. |
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 |
isMatchDayOfWeekAndDayOfMonth()
If both the day of the week and day of the month should be matched.
|
Map<CronFieldName,FieldDefinition> |
retrieveFieldDefinitionsAsMap()
Retrieve all cron field definitions values as map.
|
public CronDefinition(List<FieldDefinition> fieldDefinitions, Set<CronConstraint> cronConstraints, boolean matchDayOfWeekAndDayOfMonth)
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 receivedpublic boolean isMatchDayOfWeekAndDayOfMonth()
public Set<FieldDefinition> getFieldDefinitions()
public Map<CronFieldName,FieldDefinition> retrieveFieldDefinitionsAsMap()
public FieldDefinition getFieldDefinition(CronFieldName cronFieldName)
cronFieldName
- cron field namepublic boolean containsFieldDefinition(CronFieldName cronFieldName)
true
if this cron contains a field definition for field name.cronFieldName
- cron field nametrue
if this cron contains a field definition for field namepublic Set<CronConstraint> getCronConstraints()
Copyright © 2020 JBoss by Red Hat. All rights reserved.