Class FieldDayOfWeekDefinitionBuilder
java.lang.Object
io.github.projectunified.cronutils.model.field.definition.FieldDefinitionBuilder
io.github.projectunified.cronutils.model.field.definition.FieldQuestionMarkDefinitionBuilder
io.github.projectunified.cronutils.model.field.definition.FieldSpecialCharsDefinitionBuilder
io.github.projectunified.cronutils.model.field.definition.FieldDayOfWeekDefinitionBuilder
-
Field Summary
Fields inherited from class io.github.projectunified.cronutils.model.field.definition.FieldDefinitionBuilder
constraints, cronDefinitionBuilder, fieldName, optional -
Constructor Summary
ConstructorsConstructorDescriptionFieldDayOfWeekDefinitionBuilder(CronDefinitionBuilder cronDefinitionBuilder, CronFieldName fieldName) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionand()Registers CronField in ParserDefinitionBuilder and returns its instance.withIntMapping(int source, int dest) Defines mapping between integer values with equivalent meaning.withMondayDoWValue(int mondayDoW) Registers the field supports the W (W) special char.withValidRange(int startRange, int endRange) Allows to set a range of valid values for field.Methods inherited from class io.github.projectunified.cronutils.model.field.definition.FieldSpecialCharsDefinitionBuilder
supportsHash, supportsL, supportsLW, supportsWMethods inherited from class io.github.projectunified.cronutils.model.field.definition.FieldQuestionMarkDefinitionBuilder
supportsQuestionMarkMethods inherited from class io.github.projectunified.cronutils.model.field.definition.FieldDefinitionBuilder
optional, withStrictRange
-
Constructor Details
-
FieldDayOfWeekDefinitionBuilder
public FieldDayOfWeekDefinitionBuilder(CronDefinitionBuilder cronDefinitionBuilder, CronFieldName fieldName) Constructor.- Parameters:
cronDefinitionBuilder- - ParserDefinitionBuilder instance - if null, a NullPointerException will be raisedfieldName- - CronFieldName instance -
-
-
Method Details
-
withMondayDoWValue
Registers the field supports the W (W) special char.- Returns:
- this FieldSpecialCharsDefinitionBuilder instance
-
and
Registers CronField in ParserDefinitionBuilder and returns its instance.- Overrides:
andin classFieldDefinitionBuilder- Returns:
- ParserDefinitionBuilder instance obtained from constructor
-
withValidRange
Allows to set a range of valid values for field.- Overrides:
withValidRangein classFieldSpecialCharsDefinitionBuilder- Parameters:
startRange- - start range valueendRange- - end range value- Returns:
- same FieldDayOfWeekDefinitionBuilder instance
-
withIntMapping
Defines mapping between integer values with equivalent meaning.- Overrides:
withIntMappingin classFieldSpecialCharsDefinitionBuilder- Parameters:
source- - higher valuedest- - lower value with equivalent meaning to source- Returns:
- this FieldDayOfWeekDefinitionBuilder instance
-