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());
			}
		}
	}
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());
			}
		}
	}
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.

@param name
the name
@param map
the map
@param mySheet
the my sheet
Adds the data for year to map .