Package uk.ac.starlink.table
Class EmptyRowSequence
- java.lang.Object
-
- uk.ac.starlink.table.EmptyRowSequence
-
- All Implemented Interfaces:
RowSequence
public class EmptyRowSequence extends java.lang.Object implements RowSequence
Row sequence implementation which has no rows. Singleton impelementation.- Since:
- 28 Oct 2004
- Author:
- Mark Taylor (Starlink)
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Does nothing.java.lang.ObjectgetCell(int icol)Always throws IllegalStateException.static EmptyRowSequencegetInstance()Returns singleton instance of this class.java.lang.Object[]getRow()Always throws IllegalStateException.booleannext()Always returns false.
-
-
-
Method Detail
-
next
public boolean next()
Always returns false.- Specified by:
nextin interfaceRowSequence- Returns:
- true iff this sequence has been advanced to the next row
-
getCell
public java.lang.Object getCell(int icol)
Always throws IllegalStateException.- Specified by:
getCellin interfaceRowSequence- Returns:
- the contents of cell icol in the current row
-
getRow
public java.lang.Object[] getRow()
Always throws IllegalStateException.- Specified by:
getRowin interfaceRowSequence- Returns:
- an array of the objects in each cell in row irow
-
close
public void close()
Does nothing.- Specified by:
closein interfaceRowSequence
-
getInstance
public static EmptyRowSequence getInstance()
Returns singleton instance of this class.- Returns:
- instance
-
-