export class Period { constructor ( public month , public year ) { } public equals ( period ) { if ( period == null ) { return false ; } return this . month === period . month && this . year === period . year ; } }