Class FieldSpecialCharsDefinitionBuilder
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
- Direct Known Subclasses:
FieldDayOfWeekDefinitionBuilder
Builder that allows to specify properties for a cron field supporting non-standard characters.
-
Field Summary
Fields inherited from class io.github.projectunified.cronutils.model.field.definition.FieldDefinitionBuilder
constraints, cronDefinitionBuilder, fieldName, optional -
Constructor Summary
ConstructorsConstructorDescriptionFieldSpecialCharsDefinitionBuilder(CronDefinitionBuilder parserBuilder, CronFieldName fieldName) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionRegisters the field supports the hash (#) special char.Registers the field supports the L (L) special char.Registers the field supports the LW (LW) special char.Registers the field supports the W (W) special char.withIntMapping(int source, int dest) Defines mapping between integer values with equivalent meaning.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.FieldQuestionMarkDefinitionBuilder
supportsQuestionMarkMethods inherited from class io.github.projectunified.cronutils.model.field.definition.FieldDefinitionBuilder
and, optional, withStrictRange
-
Constructor Details
-
FieldSpecialCharsDefinitionBuilder
public FieldSpecialCharsDefinitionBuilder(CronDefinitionBuilder parserBuilder, CronFieldName fieldName) Constructor.- Parameters:
parserBuilder- - ParserDefinitionBuilderfieldName- - CronFieldName
-
-
Method Details
-
supportsHash
Registers the field supports the hash (#) special char.- Returns:
- this FieldSpecialCharsDefinitionBuilder instance
-
supportsL
Registers the field supports the L (L) special char.- Returns:
- this FieldSpecialCharsDefinitionBuilder instance
-
supportsW
Registers the field supports the W (W) special char.- Returns:
- this FieldSpecialCharsDefinitionBuilder instance
-
supportsLW
Registers the field supports the LW (LW) special char.- Returns:
- this FieldSpecialCharsDefinitionBuilder instance
-
withIntMapping
Defines mapping between integer values with equivalent meaning.- Overrides:
withIntMappingin classFieldDefinitionBuilder- Parameters:
source- - higher valuedest- - lower value with equivalent meaning to source- Returns:
- this FieldSpecialCharsDefinitionBuilder instance
-
withValidRange
Allows to set a range of valid values for field.- Overrides:
withValidRangein classFieldDefinitionBuilder- Parameters:
startRange- - start range valueendRange- - end range value- Returns:
- same FieldSpecialCharsDefinitionBuilder instance
-