@ Override protected int handleGetYearLength ( int extendedYear ) { int length = 0 ; if ( cType == CalculationType . ISLAMIC_CIVIL || cType == CalculationType . ISLAMIC_TBLA || ( cType == CalculationType . ISLAMIC_UMALQURA && ( extendedYear < UMALQURA_YEAR_START || extendedYear > UMALQURA_YEAR_END ) ) ) { length = 354 + ( civilLeapYear ( extendedYear ) ? 1 : 0 ) ; } else if ( cType == CalculationType . ISLAMIC ) { int month = 12 * ( extendedYear - 1 ) ; length = ( int ) ( trueMonthStart ( month + 12 ) - trueMonthStart ( month ) ) ; } else if ( cType == CalculationType . ISLAMIC_UMALQURA ) { for ( int i = 0 ; i < 12 ; i ++ ) length += handleGetMonthLength ( extendedYear , i ) ; } return length ; }
Return the number of days in the given Islamic year