jferard / fastods

A very fast and lightweight (no dependency) library for creating ODS (Open Document Spreadsheet, mainly for Calc) files in Java. It's a Martin Schulz's SimpleODS fork
GNU General Public License v3.0
36 stars 6 forks source link

Table should be stateless #158

Closed jferard closed 5 years ago

jferard commented 5 years ago

The Table.nextRow method should be:

RowWalker rowWalker = table.getWalker();
rowWalker.nextRow();

Or:

CellWalker walker = table.getWalker();
walker.next() -> next cell
walker.nextRow() -> next row

Maybe walker should implement TableCell and TableRow (if these interfaces do not overlap!):