|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object olg.csv.base.Row
public class Row
Row in a spreadsheet. Impoverished model to be conformed to CSV.
IReader
Field Summary | |
---|---|
private List<Cell> |
cells
Cells of this row. |
private int |
num
The number of this row among a row list. |
private int |
size
number of cell (empties and no empty cells ). |
Constructor Summary | |
---|---|
Row(int num,
List<Cell> cells,
int size)
Constructs a row with a num, cells and size. |
Method Summary | |
---|---|
Row |
copy(int num)
Create a copy with its size and cells. |
Cell |
getCell(int num)
Returns registered Cell which has the given num. |
Cell |
getCell(String num)
Return cell at the specific number from this row. |
int |
getNum()
Return the number of the row among the target document lines. |
int |
getSize()
The size of this Row corresponding to the number of cells (empty and no empty). can differ from getCells().size() depending on the chosen option at reading or at writing. |
boolean |
isEmpty()
|
Iterator<Cell> |
iterator()
Cells iterator. |
String |
toString()
Returns a representation of this row like {num:num,size:size,cells:cells}. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private final int num
private final List<Cell> cells
private final int size
Constructor Detail |
---|
public Row(int num, List<Cell> cells, int size)
num
- line number.Lines number begin at 1cells
- the cellssize
- the row size. Must be >0.Method Detail |
---|
public boolean isEmpty()
public int getNum()
public int getSize()
public Iterator<Cell> iterator()
iterator
in interface Iterable<Cell>
public Cell getCell(int num)
num
- num of the cell. Must be < row size.
null
if no cell found with the given numpublic Cell getCell(String num)
num
- Must be in a sheet cell number format (as A, B, C, ...,
AB,...) or a non negative integer
null
if no cell found with the given num.Cell.fromSheetCellNumber(String)
public String toString()
toString
in class Object
public Row copy(int num)
num
- the num of the row
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |