com.fdsapi
Class TabularDataEmpty
java.lang.Object
|
+--com.fdsapi.TabularDataBase
|
+--com.fdsapi.TabularDataEmpty
- All Implemented Interfaces:
- java.io.Serializable, TabularData
- public class TabularDataEmpty
- extends TabularDataBase
Null TabularData object. Null objects allow code to be written the same way whether an object exists
or doesn't (i.e. the null object). This is a refactoring mentioned in Martin Fowler's Refactoring book.
View Code
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TabularDataEmpty
public TabularDataEmpty()
TabularDataEmpty
protected TabularDataEmpty(int numRows,
int numCols)
createInstance
public static TabularData createInstance()
getCellData
public java.lang.Object getCellData(int col)
- Description copied from interface:
TabularData
- Return cell data in the current rows specified column
- Specified by:
getCellData in interface TabularData- Specified by:
getCellData in class TabularDataBase
getCellData
public java.lang.Object getCellData()
- Description copied from interface:
TabularData
- Return current cell data (the current row and current column)
- Specified by:
getCellData in interface TabularData- Specified by:
getCellData in class TabularDataBase
createInstance
public TabularData createInstance(java.lang.Object data)
- Description copied from interface:
TabularData
- Factory method that returns a TabularData instance. The passed object is the underlying
data that will be iterated (i.e. ResultSet, Object[][] etc)
- Specified by:
createInstance in interface TabularData- Specified by:
createInstance in class TabularDataBase