public class SheetRow<T extends Comparable<T>> extends Object implements Serializable, Iterable<SheetCell<T>>
| Modifier and Type | Method and Description |
|---|---|
void |
addCell(int index,
SheetCell<T> cell)
Adds a cell at the specified index position in the
SheetRow |
void |
addCell(SheetCell<T> cell)
Adds a cell at the end of the
SheetRow |
boolean |
equals(Object obj) |
SheetCell<T> |
get(int index)
Gets the
SheetCell at the specified index position |
Integer |
getCellCount() |
List<SheetCell<T>> |
getCells() |
Long |
getId() |
int |
hashCode() |
boolean |
isReadOnly() |
Iterator<SheetCell<T>> |
iterator() |
void |
removeCell(int index)
Removes the cell at the given index position in the
SheetRow |
void |
removeCells(int startIdx,
int endIdx)
Removes cells from starting index to end index in the
SheetRow |
void |
set(T value,
int index)
Sets the value of the
SheetCell at the given index position |
void |
setCells(List<SheetCell<T>> cells) |
void |
setId(Long id) |
void |
setReadOnly(boolean readOnly) |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic SheetRow(Long id)
id - the id of the rowpublic Long getId()
public void setId(Long id)
id - the id to setpublic boolean isReadOnly()
public void setReadOnly(boolean readOnly)
readOnly - the readOnly to setpublic Integer getCellCount()
public SheetCell<T> get(int index)
SheetCell at the specified index positionindex - of the SheetCellSheetCell at index positionIndexOutOfBoundsException - if (index < 0 || index >= number of cells)public void set(T value, int index)
SheetCell at the given index positionvalue - Comparable value to be setindex - of the SheetCellIndexOutOfBoundsException - if (index < 0 || index >= number of cells)public void addCell(SheetCell<T> cell)
SheetRowcell - SheetCell to be addedpublic void addCell(int index,
SheetCell<T> cell)
SheetRowpublic void removeCell(int index)
SheetRowindex - position of SheetCell to be removedpublic void removeCells(int startIdx,
int endIdx)
SheetRowstartIdx - starting index position of cells to be removedendIdx - end index position of cells to be removedCopyright © 2020 XIMA MEDIA GmbH. All rights reserved.