com.fredericboisguerin.excel.description.WorkbookDescription Maven / Gradle / Ivy
package com.fredericboisguerin.excel.description;
import java.util.HashMap;
import java.util.Map;
/**
* Created by fboisguerin on 23/07/2015.
*/
public class WorkbookDescription {
private final Map sheetIndexSheetInfoMap = new HashMap<>();
/**
* Add a sheet to the workbook
*
* @param sheetIdx the index of the sheet (indexed from 0)
* @param sheetInfo the {@link SheetDescription} of the added sheet
*/
public void addSheetInfo(int sheetIdx, SheetDescription sheetInfo) {
sheetIndexSheetInfoMap.put(sheetIdx, sheetInfo);
}
/**
* The map describing the workbook
*
* @return a {@link Map} which keys are the indexes of the sheets (indexed from 0)
*/
public Map getSheetIndexSheetInfoMap() {
return sheetIndexSheetInfoMap;
}
}