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, wait
forEach, spliterator
public SheetRow(Long id)
id
- public 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 SheetCell
IndexOutOfBoundsException
- if (index < 0 || index >= number of cells
)public void addCell(int index, SheetCell<T> cell)
SheetRow
public void removeCell(int index)
SheetRow
public void removeCells(int startIdx, int endIdx)
SheetRow
Copyright © 2019 XIMA MEDIA GmbH. All rights reserved.