@CodeReview(reviewer="Jonathan McClain", date="2006-05-16", changesNeeded=false, comments="Looks fine. Why doesn\'t Matrix have additional methods that allow you to access it using MatrixEntry? Seems like a logical addition.", response=@CodeReviewResponse(respondent="Justin Basilico",date="2006-05-16",moreChangesNeeded=false,comments="Can now access a Matrix using MatrixEntry")) public interface MatrixEntry
Modifier and Type | Method and Description |
---|---|
int |
getColumnIndex()
Gets the column index to which the entry points
|
int |
getRowIndex()
Gets the current row index to which this entry points
|
double |
getValue()
Gets the value to which this entry points
|
void |
setColumnIndex(int columnIndex)
Sets the column index to which the entry points
|
void |
setRowIndex(int rowIndex)
Sets the current row index to which this entry points
|
void |
setValue(double value)
Sets the value to which this entry points
|
int getRowIndex()
void setRowIndex(int rowIndex)
rowIndex
- zero-based row indexdouble getValue()
void setValue(double value)
value
- new value at the current indicesint getColumnIndex()
void setColumnIndex(int columnIndex)
columnIndex
- new zero-based column index for the entry