poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Woolsey <greg.wool...@gmail.com>
Subject Re: Getting and setting cell value
Date Sat, 11 Mar 2017 03:54:14 GMT
I especially would like the setter, to avoid annoying code, and the getter
would be nice in many cases where the value type doesn't matter or is
better handled further downstream.

On Fri, Mar 10, 2017, 19:04 Javen O'Neal <onealj@apache.org> wrote:

> Would it be a good idea to add the following two methods to the cell
> interface so that the switch(cell.getCellType()) code can be taken care of
> in POI?
> interface org.apache.poi.ss.usermodel.Cell {
>     Object getCellValue();
>     void setCellValue(Object value);
> }
> We would have to decide how to handle formulas, but otherwise the code is
> straightforward. I think this would go a long way to making the POI API
> easier to use.
> Any objections?

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message