public class CronDefinition extends Object implements Serializable
| Constructor and Description |
|---|
CronDefinition(List<FieldDefinition> fieldDefinitions,
Set<CronConstraint> cronConstraints,
Set<CronNicknames> cronNicknames,
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. |
boolean |
equals(Object o) |
Set<CronConstraint> |
getCronConstraints() |
Set<CronNicknames> |
getCronNicknames() |
FieldDefinition |
getFieldDefinition(CronFieldName cronFieldName)
Returns field definition for field name of this cron.
|
Set<FieldDefinition> |
getFieldDefinitions()
Returns field definitions for this cron.
|
int |
hashCode() |
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, Set<CronNicknames> cronNicknames, 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()
public Set<CronNicknames> getCronNicknames()
Copyright © 2023. All rights reserved.