private static Integer [ ] getAdjustedMonthLength ( int year ) { Integer [ ] newMonths ; try { newMonths = ADJUSTED_MONTH_LENGTHS . get ( Integer . valueOf ( year ) ) ; } catch ( ArrayIndexOutOfBoundsException e ) { newMonths = null ; } if ( newMonths == null ) { if ( isLeapYear ( year ) ) { newMonths = DEFAULT_LEAP_MONTH_LENGTHS ; } else { newMonths = DEFAULT_MONTH_LENGTHS ; } } return newMonths ; }
Returns adjusted month length as Integer array form the year specified .