Class BasicIDARESheet
- java.lang.Object
-
- idare.imagenode.Interfaces.DataSetReaders.WorkBook.BasicImplementation.BasicIDARESheet
-
- All Implemented Interfaces:
IDARESheet,Iterable<IDARERow>
public class BasicIDARESheet extends Object implements IDARESheet
This is a basic implementation of aIDARESheetfor convenience.- Author:
- Thomas Pfau
-
-
Constructor Summary
Constructors Constructor Description BasicIDARESheet(String sheetname)Default constructor using the name of the sheet.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BasicIDARERowcreateRow()Create a row at the end of this sheetintgetLastRowNum()Get the index of the last RowintgetPhysicalNumberOfRows()Get the total number of non null rows in this Sheet.IDARERowgetRow(int arg0)Get the Row with the provided row indexintgetRowIndex(BasicIDARERow row)Get the index of a given RowStringgetSheetName()Get the Name of this Sheet.Iterator<IDARERow>iterator()Iterator<IDARERow>rowIterator()Get an Iterator over all rows in this Sheet.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Constructor Detail
-
BasicIDARESheet
public BasicIDARESheet(String sheetname)
Default constructor using the name of the sheet.- Parameters:
sheetname- the name of this sheet.
-
-
Method Detail
-
getLastRowNum
public int getLastRowNum()
Description copied from interface:IDARESheetGet the index of the last Row- Specified by:
getLastRowNumin interfaceIDARESheet- Returns:
- the index of the last non null Row in this Sheet
-
getPhysicalNumberOfRows
public int getPhysicalNumberOfRows()
Description copied from interface:IDARESheetGet the total number of non null rows in this Sheet.- Specified by:
getPhysicalNumberOfRowsin interfaceIDARESheet- Returns:
- the number of non null rows in this sheet
-
getRow
public IDARERow getRow(int arg0)
Description copied from interface:IDARESheetGet the Row with the provided row index- Specified by:
getRowin interfaceIDARESheet- Parameters:
arg0- the index for which aIDARERowis requested- Returns:
- the requested Row or null, if it does not exist.
-
getSheetName
public String getSheetName()
Description copied from interface:IDARESheetGet the Name of this Sheet.- Specified by:
getSheetNamein interfaceIDARESheet- Returns:
- the name of this sheet.
-
rowIterator
public Iterator<IDARERow> rowIterator()
Description copied from interface:IDARESheetGet an Iterator over all rows in this Sheet.- Specified by:
rowIteratorin interfaceIDARESheet- Returns:
- The iterator iterating over all Rows in this sheet.
-
createRow
public BasicIDARERow createRow()
Create a row at the end of this sheet- Returns:
- the created Row.
-
getRowIndex
public int getRowIndex(BasicIDARERow row)
Get the index of a given Row- Parameters:
row- TheBasicIDARERowto get the index for.- Returns:
- the index of the given row.
-
-