|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectpl.edu.agh.cast.rawdata.logging.AbstractRawDataMonitorable
pl.edu.agh.cast.rawdata.DataRow
public class DataRow
Class which represents one row of data read from source data file. It contains list of strings object each representing one cell.
| Field Summary | |
|---|---|
static int |
UNSPECIFIED_ROW_NUMBER
Indicates that row has unspecified number in tabular data. |
| Constructor Summary | |
|---|---|
DataRow()
Default constructor. |
|
| Method Summary | |
|---|---|
void |
add(int index,
String element)
Inserts the specified element at the specified position in this list. |
boolean |
add(String element)
Appends the specified element to the end of this list. |
String |
get(int index)
Returns the element at the specified position in this list. |
int |
getRowNumber()
|
Object |
remove(int index)
Removes the element at the specified position in this list. |
String |
replace(int index,
String element)
Replaces cells specified by index, by element. |
int |
size()
Returns the number of elements in this list. |
String |
toString()
|
| Methods inherited from class pl.edu.agh.cast.rawdata.logging.AbstractRawDataMonitorable |
|---|
getObservers, registerObserver, unregisterObserver |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int UNSPECIFIED_ROW_NUMBER
| Constructor Detail |
|---|
public DataRow()
| Method Detail |
|---|
public int getRowNumber()
public String replace(int index,
String element)
index - index of cell to replaceelement - new element
null if specified index is out of boundspublic boolean add(String element)
element - element to be inserted
true (as per the general contract of Collection.add).
public void add(int index,
String element)
throws IndexOutOfBoundsException
index - index at which the specified element is to be insertedelement - element to be inserted
IndexOutOfBoundsException - if the specified index is out of range (index < 0 || index > size()).public int size()
public String get(int index)
throws IndexOutOfBoundsException
index - index of element to return
IndexOutOfBoundsException - if the specified index is out of range (index < 0 || index > size()).
public Object remove(int index)
throws IndexOutOfBoundsException
index - the index of the element to removed
IndexOutOfBoundsException - if the specified index is out of range (index < 0 || index > size()).public String toString()
toString in class ObjectObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||