}
/**
- * get the hssfcell representing a given column (logical cell) 0-based. If you
- * ask for a cell that is not defined....you get a null.
+ * Get the hssfcell representing a given column (logical cell)
+ * 0-based. If you ask for a cell that is not defined....
+ * you get a null.
+ * Short method signature provided to retain binary
+ * compatibility.
*
* @param cellnum 0 based column number
* @return HSSFCell representing that column or null if undefined.
*/
-
public HSSFCell getCell(short cellnum)
{
- if(cellnum<0||cellnum>=cells.length) return null;
- return cells[cellnum];
+ return getCell((int)cellnum);
+ }
+ /**
+ * Get the hssfcell representing a given column (logical cell)
+ * 0-based. If you ask for a cell that is not defined....
+ * you get a null.
+ *
+ * @param cellnum 0 based column number
+ * @return HSSFCell representing that column or null if undefined.
+ */
+ public HSSFCell getCell(int cellnum) {
+ if(cellnum<0||cellnum>=cells.length) return null;
+ return cells[cellnum];
}
/**
* @param cellnum 0 based column number
* @return HSSFCell representing that column or null if undefined.
*/
-
- Cell getCell(short cellnum);
+ Cell getCell(int cellnum);
/**
* get the number of the first cell contained in this row.
* @return short representing the first logical cell in the row, or -1 if the row does not contain any cells.
*/
-
short getFirstCellNum();
/**