Home Manual Reference Source Test Repository
public class | source

ByYear

Extends:

ByGeneric → ByYear

Constructor Summary

Public Constructor
public

constructor(parent: BaseOperationBuilder, date: Date, periodicityName: string, end: number or Date)

Constructor

Method Summary

Public Methods
public

At this day will be executed the operation

public

At this month will be executed the operation

Public Constructors

public constructor(parent: BaseOperationBuilder, date: Date, periodicityName: string, end: number or Date) source

Constructor

Override:

ByGeneric#constructor

Params:

NameTypeAttributeDescription
parent BaseOperationBuilder
  • nullable: false

this is a operationBaseBuilder.

date Date
  • nullable: false

Date when operation will be executed

periodicityName string

Name associated to periodicity

end number or Date
  • nullable: false

When periodicity ends. By repetitions or by date

Public Methods

public day(day: number): BaseOperationBuilder source

At this day will be executed the operation

Params:

NameTypeAttributeDescription
day number
  • nullable: false

Throw:

Error

throw error when day is not typeof number

Error

throw error when day is > 31 and < 1

public month(month: string): BaseOperationBuilder | ByYear source

At this month will be executed the operation

Params:

NameTypeAttributeDescription
month string
  • nullable: false

Throw:

Error

throw error when month is not typeof string

Error

throw error when month is not found into MONTHS_ENUM