private static void addDataForYearToMap ( final String name , final Map < Integer , GovernmentBodyAnnualSummary > map , final HSSFSheet mySheet ) { if ( mySheet . getSheetName ( ) . chars ( ) . allMatch ( Character :: isDigit ) ) { final int year = Integer . parseInt ( mySheet . getSheetName ( ) ) ; final Iterator < Row > rowIterator = mySheet . iterator ( ) ; rowIterator . next ( ) ; while ( rowIterator . hasNext ( ) ) { addGovernmentBodyAnnualSummaryToMap ( name , map , year , rowIterator . next ( ) ) ; } } }
Adds the data for year to map .